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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to view a stored procedure

Status
Not open for further replies.

shyamal

Programmer
Aug 14, 2000
79
US
What command can I use in Query Analyzer to view a stored procedure? I would like to read through a sp line by line but cannot remember the command. It is not sp_help procedure name nor is it execute procedure name.

Thanks in advance.
 
sp_helptext <procedure name>

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Try:

sp_helptext or press F8 to get to the object browser and right click on the SP and click Edit.



Sunil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top