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

Stored procedures in SQL

Status
Not open for further replies.

Tomi

Programmer
Nov 19, 2001
57
US
Hi,

Where does SQL server store the stored procedure and its text(code)? Is it possible to retrieve that from a table or view ?

Thanks
Tomi
 

This the SQL:

SELECT text FROM syscomments
WHERE id = object_id(procedure name)
 
It's in the syscomments table.

However it may be in more than one recored within the syscomments table.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top