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
SELECT name,
type
FROM dbo.sysobjects
WHERE (type = 'P')
If you are using SQL Server 2005 the following will work:
select *
from sys.procedures
where is_ms_shipped = 0
You can try this query to get stored procedures and functions:
SELECT name, type
FROM dbo.sysobjects
WHERE type IN (
'P', -- stored procedures
'FN', -- scalar functions
'IF', -- inline table-valued functions
'TF' -- table-valued functions
)
ORDER BY type, name
This can also help to list procedure except the system procedures:
select * from sys.all_objects where type='p' and is_ms_shipped=0
Try this codeplex link, this utility help to localize all stored procedure from sql database.
https://exportmssqlproc.codeplex.com/
select *
from dbo.sysobjects
where xtype = 'P'
and status > 0