Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Enterprise
Expertise: Intermediate
May 4, 2000

View SQL Behind System Stored Procedures

If you are ever trying to write SQL to access SQL server's system tables, it is often useful to look at SQL Server's own system stored procedures. You can do this by simply running EXEC sp_helptext system_proc_name (where system_proc_name is the name of the stored procedure you want see the SQL for) from the master database.

For example, EXEC sp_helptext sp_help will show the SQL executed by the system stored procedure sp_help, which returns information about an object, such as a table, view, or stored procedure.

David Satz
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap