Unable to find where triggers are stored in sql server 2008

后端 未结 5 486
我寻月下人不归
我寻月下人不归 2020-12-15 15:33

I want to delete and modify previously created triggers but i cant find them anywhere in database. Where they exist and how to edit or delele them

5条回答
  •  猫巷女王i
    2020-12-15 15:50

    Here is a better way:

    select a.[name] as trgname, b.[name] as [tbname] 
    from sys.triggers a join sys.tables b on a.parent_id = b.object_id
    

    Just be sure to run it against the database where you think the trigger is located.

提交回复
热议问题