How to get all the tables' name?
Select *Change the type to 'P' and you will get all the Stored Procedures.
From sysobjects
Where type = 'U'
Order By name
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.tables
How to get the content of stored procedures?
Select text From syscomments Where id =or
(Select id From sysobjects Where type='P' and name = 'SprocName')
Exec sp_helptext SprocNameI prefer the second one.

0 Comments:
Post a Comment