查看當前庫中全部觸發器及其對應表名

SELECT tb2.name AS tableName,tb1.name AS triggerName FROM Sysobjects tb1 JOIN Sysobjects tb2 ON tb1.parent_obj=tb2.id 
WHERE tb1.type='TR'
相關文章
相關標籤/搜索