Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List of Stored Procedures 1

Status
Not open for further replies.

jorbroni

Technical User
Dec 5, 2002
24
US
Hi

Can anyone tell me how do I generate a list of the stored procedures in a database?

Thanks
 
This should do the trick in SQL2K:

Code:
SELECT Specific_Name
FROM Information_Schema.Routines

Check Information Schema views in BOL for more info.

--Angel [rainbow]
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
 
Try this:

select * from sysobjects
where xtype = 'p'

- Glen

Know thy data.
 
Microsoft cautions against querying the system tables directly. They have been threatening to change the structures, etc., on us for a while now. They contend that the Information_Schema views will not change, making them a safer choice. There are also many metadata functions available to get information on database objects. Just my two cents.

--Angel [rainbow]
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
 
Hi Angel,

That's definately good to know. I'll have to look into the schema views.

BTW: Where it Tampa? I live in Tampa and work in St. Pete.

- Glen

Know thy data.
 
I live in West Palm Beach (WPB) right now and will be moving to Tampa Bay (actually St Pete/Gulfport area) in early March 2004. Happy coding!

--Angel [rainbow]
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top