Link to home
Start Free TrialLog in
Avatar of 25112
25112

asked on

active triggers

when i disbale a trigger, it still says enabled.. what am i doing wrong?
Avatar of 25112
25112

ASKER


when i try the below code, i get 3 zero values
select distinct is_disabled from sys.triggers
GO
DISABLE Trigger ALL ON DATABASE
select distinct is_disabled from sys.triggers
GO
ENABLE Trigger ALL ON DATABASE
GO
select distinct is_disabled from sys.triggers

Open in new window

Avatar of Shaun Kline
Are you trying to disable triggers on the database object or on table objects?
Avatar of 25112

ASKER

all tables
The code you provided disables all triggers for the Database object. I do not believe it disables the triggers for the tables. For that, I believe you would need to run DISABLE TRIGGER for each table.
ASKER CERTIFIED SOLUTION
Avatar of Shaun Kline
Shaun Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 25112

ASKER

works!