Groups | Blog | Home
all groups > sql server (alternate) > september 2003 >

sql server (alternate) : Procedure in Stored procedure??


thethrill99 NO[at]SPAM yahoo.com
9/12/2003 8:07:00 PM
Hi all,
Question from a guy who knows PL/SQL, but is starting with
Transac-SQL on SQL Server....

Is it possible to have a sub procedure in a Stored Procedure, like
we do in a PL/sql package ? Or better yet, have a kind of general
Stored Procedure that would contain procedures called by more than one
Stored Proc??

I can't find anything like this in the online books....

Thanks for your inputs....

John Bell
9/13/2003 10:05:04 AM
Hi

SQL Server does not have packages and limited scope for shared variables.

http://vyaskn.tripod.com/oracle_sql_server_differences_equivalents.htm
http://tinyurl.com/n7v6
http://www.algonet.se/~sommar/share_data.html
http://tinyurl.com/n7vc
http://www.algonet.se/~sommar/dynamic_sql.html

In general there should be no need to create a stored procedure within
another stored procedure, therefore I think you should think about your
requirements and design, rather than to do a parallel implementation that
mimicks your Oracle code.

John



[quoted text, click to view]

thethrill99 NO[at]SPAM yahoo.com
9/13/2003 8:27:55 PM
Thanks ! And I'll chek out the links you gave me....


[quoted text, click to view]
AddThis Social Bookmark Button