x
login about faq Site discussion (meta-askssc)

Trigger while Replication

Can trigger be invoked while replication? I have tried after replication its working fine.But i need to know while replication is it possible..

more ▼

asked Feb 29 '12 at 02:55 PM in Default

mahesh.kumar gravatar image

mahesh.kumar
1 1 1

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

Triggers are invoked by events like insert delete update.

more ▼

answered Feb 29 '12 at 04:43 PM

inder gravatar image

inder
201 10 16 21

(comments are locked)
10|1200 characters needed characters left

Yes, a trigger can be invoked during replication. You need to mark the trigger NOT FOR REPLICATION.

Have a look at Controlling Constraints, Identities, and Triggers with NOT FOR REPLICATION.

more ▼

answered Feb 29 '12 at 05:36 PM

willibrandon gravatar image

willibrandon
11

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x240
x99

asked: Feb 29 '12 at 02:55 PM

Seen: 469 times

Last Updated: Feb 29 '12 at 05:36 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.