Groups | Blog | Home
all groups > sql server replication > june 2006 >

sql server replication : replication error with trigger



stephanie
6/14/2006 8:15:01 PM
I found a problem in replication which we have 3 tables, namely tab A, tab B
and tab C

replication will apply on tab A and tab B

and there is a trigger on tab A and tab B, whenever insert/update on tab A
it fires trigger to update tab b

whenever insert/update on tab B it fires trigger to update tab C

And I found the replication error from tab A on updating tab C. If I
manually insert the rowin tab A, it works fine.....

Any advise? Thanks in advance!
Hilary Cotter
6/15/2006 12:00:00 AM
Any DML which you need transferred from table A to B and C should be done
via replication articles as opposed to through a trigger. You will get
better performance that way.
--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

stephanie
6/15/2006 3:39:02 AM
What about if we need the trigger to update the tab B and tab C via
replication update?

[quoted text, click to view]
Hilary Cotter
6/15/2006 5:26:42 AM
set the trigger to not for replication. This might fix your problem.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

AddThis Social Bookmark Button