Script views in SQL 2000

  • Hi,

    How do I Script views in SQL 2000 with columns. I don't need a create script, but I need to script all the columns in a view. If I run the query "select * from INFORMATION_SCHEMA.COLUMNS", it gives me a list of all the table names along with the columns in a database. I need exactly same for views.

    Thnx.

  • Same query will work for view.

    select * from information_schema.columns where table_name='View Name'

    reply Me if I am not getting your question.

Viewing 2 posts - 1 through 1 (of 1 total)

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