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

Lists all the user defined stored procedures. 1

Status
Not open for further replies.

VDhir

Programmer
Aug 9, 2001
2
IN
Hi All

Function - : Lists all the user defined stored procedures.

SELECT Name FROM SYSOBJECTS
WHERE (TYPE = 'P') AND (OBJECTPROPERTY(OBJECT_ID(Name), 'IsMSShipped') = 0)
ORDER BY Name

Function - : Lists all the user defined Tables.

SELECT Name FROM SYSOBJECTS
WHERE (TYPE = 'U') AND (OBJECTPROPERTY(OBJECT_ID(Name), 'IsMSShipped') = 0)
ORDER BY Name


and you can check other results by changing the Type parameter in the query

Possible Types are -:

S, D, U, F, P, V, K


Regards
Dhir
 
Is it a question? I think is a helpful tip. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top