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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-11-10 : 07:29:01
|
| Deepak writes "How can I get the body of the View in SQL. sp_helptext does print the body, but i cant catch that text in any variable.Thanks.Deepak." |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-11-10 : 08:58:14
|
You can use temporary table to catch the text of viewRefer thisCreate table #t(data varchar(8000))insert into #t Exec sp_helptext 'ttv'Select data from #tdrop table #t MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|