question

mahesh.kumar avatar image
mahesh.kumar asked

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..
replicationtrigger
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

inder avatar image
inder answered
Triggers are invoked by events like insert delete update.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

willibrandon avatar image
willibrandon answered
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][1]. [1]: http://msdn.microsoft.com/en-us/library/ms152529.aspx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.