Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 List of Stored Procedures

Author  Topic 

nguyenl
Posting Yak Master

128 Posts

Posted - 2008-08-11 : 13:14:45
Is there a query I can run to get a list of Stored Procedures?

Thanks,

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-08-11 : 13:19:31
select name from sysobjects where type = 'P'

or

Select name from sys.procedures

--Edit : Don't wanna display all info
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-11 : 13:22:39
Better yet, use the INFORMATION_SCHEMA view. It's better to get comfortable with the INFORMATION_SCHEMA views rather than using system tables as system tables can and will change between versions.

SELECT *
FROM INFORMATION_SCHEMA.ROUTINES

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-11 : 13:24:39
select * from sys.objects where type in ('P','PC')
if you want CLR stored procedure also
Go to Top of Page
   

- Advertisement -