select text from syscomments s1 join sysobjects s2 on s1.id=s2.id where name='視圖名稱'前提條件是視圖沒有被加密,有權限加密