How to select user stored procedures

  • Hi, I'm trying to write a query to select all user stored procedures in a db (and exclude system stored procedures). The follow query will list all stored procedures (user and system). How can I exclude the system stored procedures?

    select * from sysobjects where type='P'

    Thanks.

  • I'm not sure if this is always the case, but it seems like the category column in sysobjects has a 2 for system sprocs and a 0 for user sprocs.


    So long, and thanks for all the fish,

    shang
    atk.com

  • Yes, that's it. I overlooked that column. Thanks and sorry for such a basic question!

  • Just a note - standardized naming conventions also help!







    **ASCII stupid question, get a stupid ANSI !!!**

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply