Link to home
Start Free TrialLog in
Avatar of yiping
yiping

asked on

SQL Script to Set Triggers not for replication

I am setting up Transactional replication, I need to set all the triggers in the production database to Not for Replication. At the moment I am using the Alter Trigger command to add the not for replication option for each trigger. But there is like 250 Triggers , is there a faster way or any sp i can use to make my life easiler now and in the future ?

many Thanks

SOLUTION
Avatar of stevetheski
stevetheski
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
ASKER CERTIFIED SOLUTION
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 yiping
yiping

ASKER

Thanks so much made my life much easiler