Unable to find where triggers are stored in sql server 2008

后端 未结 5 483
我寻月下人不归
我寻月下人不归 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条回答
  •  离开以前
    2020-12-15 15:48

    You can also find the triggers by querying the management views in SQL Server Management Studio:

    SELECT
        OBJECT_NAME(object_id) 'Table name', *
    FROM 
        sys.triggers
    

    That gives you a list of all triggers and what table they're defined on for your current database. You can then go on to either disable or drop them.

提交回复
热议问题