Need to list all triggers in SQL Server database with table name and table's schema

后端 未结 19 1016
再見小時候
再見小時候 2020-11-28 17:12

I need to list all triggers in SQL Server database with table name and table\'s schema.

I\'m almost there with this:

SELECT trigger_name = name, trig         


        
19条回答
  •  余生分开走
    2020-11-28 17:55

    SELECT tbl.name as Table_Name,trig.name as Trigger_Name,trig.is_disabled  
    FROM [sys].[triggers] as trig inner join sys.tables as tbl on 
    trig.parent_id = tbl.object_id 
    

提交回复
热议问题