twosober
Valued Member
Points: 53
More actions
March 22, 2002 at 5:13 am
#158351
Is there an easy way (besides copying and pasting) for me to get the actual code from a View stored on my SQL box to an ASP page so that it can be modified and then re-created.
Thanks In Advance
Andy Warren
SSC Guru
Points: 119902
March 22, 2002 at 5:49 am
#425910
You can retrieve it from sysobjects or use DMO to get it. Why would you want to alter a view in a web page?
Andy
AndySQLAndy - My Blog!Connect with me on LinkedInFollow me on Twitter
Antares686
Points: 125444
March 22, 2002 at 8:28 am
#425919
You can also use sp_helptext 'viewname' to get it as a recordset.
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply