sp_stored_procedures help

  • Thread starter Thread starter John Wright
  • Start date Start date
J

John Wright

I need to list all the stored procs in my database. I use the
sp_stored_prodecures SP which returns all the stored procs in the database
including the system stored procedures. If is use the qualifier
sp_stored_procedures, null, 'DBO' I can filter out the sys owners but I
still get about 7 sp_ stored procedues like sp_alterdiagram,
sp_creatediagram, etc. When I look in Management Studio these are listed as
system procs. What qualifier do I need to only list non system stored
procedures?

Thanks.

John
 
John Wright said:
I need to list all the stored procs in my database. I use the
sp_stored_prodecures SP which returns all the stored procs in the database
including the system stored procedures. If is use the qualifier
sp_stored_procedures, null, 'DBO' I can filter out the sys owners but I
still get about 7 sp_ stored procedues like sp_alterdiagram,
sp_creatediagram, etc. When I look in Management Studio these are listed
as system procs. What qualifier do I need to only list non system stored
procedures?

Thanks.

John
USE [MyDB]

SELECT name

FROM sysobjects

where xtype = 'p'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top