Accessing the Code Of A View

  • 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

  • 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

  • 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 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply