Getting All Stored Procedures Inside a Database

There are essentially two ways to get a list of all Stored Procedures inside your database.

Option 1:

SELECT *FROM YOUR_DATABASE_NAME.information_schema.routinesWHERE routine_type = 'PROCEDURE'ORDER BY Specific_name

This option checks the database’s objects itself for a Procedure type. This produces a list of all procedure routines in your database.

Option 2:

SELECT name,typeFROM dbo.sysobjectsWHERE (type = 'P') 

This simply does a search through the dbo object where it is a procedure.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts