What query can return the names of all the stored procedures in a SQL Server database
If the query could exclude system stored procedures, that would be even more helpful.
What query can return the names of all the stored procedures in a SQL Server database
If the query could exclude system stored procedures, that would be even more helpful.
This, list all things that you want
In Sql Server 2005, 2008, 2012 :
OR
I wrote this simple tsql to list the text of all stored procedures. Be sure to substitute your database name in field.
This will give just the names of the stored procedures.
Unfortunately
INFORMATION_SCHEMA
doesn't contain info about the system procs.As Mike stated, the best way is to use
information_schema
. As long as you're not in the master database, system stored procedures won't be returned.If for some reason you had non-system stored procedures in the master database, you could use the query (this will filter out MOST system stored procedures):