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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How can I get All SProcs that exist in a DB ?

Author  Topic 

ya3mro
Starting Member

37 Posts

Posted - 2006-05-23 : 07:05:51

Dear All ::

i want to know if there is any way (By Coding )that can help me in retieving All
DataBase's StoredProcedures Names ??

for example ::
if i use C# i want to Click on Button then in this button code
:: 1 :: connect to required DB
:: 2 :: return All Stored Procedures Names that exist in this DB

plz Help me ?

How I Came To Islam?
http://english.islamway.com

RyanRandall
Master Smack Fu Yak Hacker

1074 Posts

Posted - 2006-05-23 : 07:09:21
You should use INFORMATION_SCHEMA for this type of problem...

SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_TYPE = 'PROCEDURE'

Ryan Randall
www.monsoonmalabar.com London-based IT consultancy

Solutions are easy. Understanding the problem, now, that's the hard part.
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-05-23 : 07:11:10
sELECT * FROM SYSOBJECTS WHERE XTYPE = 'P'

If Debugging is the process of removing Bugs then i Guess programming should be process of Adding them.
Go to Top of Page

ya3mro
Starting Member

37 Posts

Posted - 2006-05-23 : 07:26:22
thnax too much my friends

How I Came To Islam?
http://english.islamway.com
Go to Top of Page
   

- Advertisement -