Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting stored procedure script

Status
Not open for further replies.

jafisher2000

Programmer
May 5, 2002
25
JM
Does anyone know how to get the create statement for a stored procedure programmatically using system tables and/or stored procedures. Actually any method except using DMO. I want to use .NET as the language that reads the information
 
I never did this, but I imagine it is not too difficult to use the sp_Helptext stored procedure to get the sql code of a stored procedure, with which if you look into the source code of this stored procedure, it is using the syscomments table to get the text of the stored procedure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top