Select * From sysobjects Where type = 'U' Order By nameChange the type to 'P' and you will get all the Stored Procedures.
Change the type to 'F' and you will get all the UDF (User-Defined Function).
More details from here.
Another way to get the tables:
Select * From sys.tablesHow to get the content of stored procedures?
Select text From syscomments Where id = (Select id From sysobjects Where type='P' and name = 'SprocName')or
Exec sp_helptext SprocNameI prefer the second one.
No comments:
Post a Comment