SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 List of Stored Procedures
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nguyenl
Posting Yak Master

128 Posts

Posted - 08/11/2008 :  13:14:45  Show Profile  Reply with Quote
Is there a query I can run to get a list of Stored Procedures?

Thanks,

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 08/11/2008 :  13:19:31  Show Profile  Reply with Quote
select name from sysobjects where type = 'P'

or

Select name from sys.procedures

--Edit : Don't wanna display all info

Edited by - sodeep on 08/11/2008 13:25:29
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
36932 Posts

Posted - 08/11/2008 :  13:22:39  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

India
52317 Posts

Posted - 08/11/2008 :  13:24:39  Show Profile  Reply with Quote
select * from sys.objects where type in ('P','PC')
if you want CLR stored procedure also
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000