select name from sysobjects where xtype='TR' --全部觸發器select name from sysobjects where xtype='P' --全部存儲過程select name from sysobjects where xtype='V' --全部視圖select name from sysobjects where xtype='U' --全部表object