Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Old Forums
 CLOSED - General SQL Server
 Retrieving source of view?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-01-08 : 08:53:43
Rick writes "Is there a way to pass a view name to a stored procedure as a parameter and return the source (create statement) of that view?

Thanks"

nr
SQLTeam MVY

12543 Posts

Posted - 2003-01-08 : 09:13:23
put this in the sp
exec sp_helptext @parm

or in fact sp_helptext is the sp you want

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -