RE: syntax to print list of SPs
From: Natesh Kumar (Kumar_at_discussions.microsoft.com)
Date: 12/10/04
- Next message: Lowell Heddings: "Re: best efficiency for full-text search"
- Previous message: Justin Drennan: "SAN?"
- In reply to: Vyshnavi: "RE: syntax to print list of SPs"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 9 Dec 2004 23:53:07 -0800
Use <DataBaseName>
For Tables
select name from sysobjects where type='u'
For Stored Procedure
select name from sysobjects where type='p'
"Vyshnavi" wrote:
> Hi
>
> This query will give you the objects created by user.
> select * from sysobjects where type = 'P' and OBJECTPROPERTY ( id,
> 'ISMSShipped') = 0
>
> This query will give you the objects shipped by Microsoft during installation.
> select * from sysobjects where type = 'P' and OBJECTPROPERTY ( id,
> 'ISMSShipped') = 1
>
> Thanks
> Vyshnavi
>
> "smk23" wrote:
>
> > Could someone give me the syntax for printing the list of stored procedures
> > in a DB?
> > Thanks a lot!!
> >
> > --
> > sam
- Next message: Lowell Heddings: "Re: best efficiency for full-text search"
- Previous message: Justin Drennan: "SAN?"
- In reply to: Vyshnavi: "RE: syntax to print list of SPs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|