如何查看视图的sql语句

select text from syscomments s1 join sysobjects s2 on s1.id=s2.id where name='视图名称'
前提条件是视图没有被加密,有权限加密

相关文章
相关标签/搜索