Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Triggers and replication

Status
Not open for further replies.

corneI

Programmer
May 5, 2003
18
0
0
ZA
Hi all...

How are triggers treated during replication?
Are they replicated with the table or not?

Thanks
:)
 
u should explain more what u want, 'cause i have worked with trigeers and in many times i've needed to set them NOT FOR REPLICATION, but i am not sure if it's what u want to know.

Regards

The life is too short to cry and long enough to try it... God bless us.
[thumbsup2]
 
Basically it's like this. If you publish a table that has a trigger, the trigger will not automatically be added as an object on the subscriber table. You can create the trigger on the subscriber table manually. If you create the trigger on the subscriber table and use the "NOT FOR REPLICATION" keyword, any data that is added/changed/deleted on the subscriber table because of replication will NOT cause the trigger to fire.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top