Browse DevX
Sign up for e-mail newsletters from DevX

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



Building the Right Environment to Support AI, Machine Learning and Deep Learning

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.



Thanks for your registration, follow us on our social networks to keep up-to-date