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 he
This, list all things that you want
In Sql Server 2005, 2008, 2012 :
Use [YourDataBase]
EXEC sp_tables @table_type = "'PROCEDURE'"
EXEC sp_tables @table_type = "'TABLE'"
EXEC sp_tables @table_type = "'VIEW'"
OR
SELECT * FROM information_schema.tables
SELECT * FROM information_schema.VIEWS
USE DBNAME
select ROUTINE_NAME from information_schema.routines
where routine_type = 'PROCEDURE'
GO
This will work on mssql.
Select All Stored Procedures and Views
select name,type,type_desc
from sys.objects
where type in ('V','P')
order by name,type
The following will Return All Procedures in selected database
SELECT * FROM sys.procedures
From my understanding the "preferred" method is to use the information_schema tables:
select *
from information_schema.routines
where routine_type = 'PROCEDURE'