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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I list only My Own Stored procs and not all procs?

Status
Not open for further replies.

Sina

Technical User
Jan 2, 2001
309
CA
Hello all,

I have the following script

Select so.name,sc.name,st.name,sc.length,so.type,sc.type, ownername
FROM syscolumns sc,master..systypes st,sysobjects so
WHERE sc.id in (select id from sysobjects where type ='P')
AND so.type ='p'
AND sc.id = so.id
AND sc.type = st.type
AND sc.type <> 39

Which will list all procs but I would like to see only the ones I have created.

Any idea?

Thanks

 
I think this is what you are looking for (sql server 2000):

select name, status
from sysobjects
where type = 'P'
and status >= 0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top