透過 sysobjects 可以查詢資料庫裡面的物件,根據欄位 xtype 可以查各種物件 select * from sysobjects where xtype= '種類代碼' xType種類代碼如下(請注意不同版本的MS-SQL支援的會略有不同): MSSQL 2000 object types: C = CHECK constraint
www.dotblogs.com.tw