Is there a way to retrieve the view definition from a SQL Server using plain ADO?

前端 未结 6 650
攒了一身酷
攒了一身酷 2020-12-02 08:00

I\'m successfully extracting column definitions from databases hosted on a SQL server using the ADO Connection OpenSchema() call in its various incarnations so

6条回答
  •  天涯浪人
    2020-12-02 08:53

    For users of SQL 2000, the actual command that will provide this information is:

    select c.text
    from sysobjects     o
    join syscomments    c on c.id = o.id
    where o.name = ''
      and o.type      = 'V'
    

提交回复
热议问题