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

sql server replication : NOT FOR REPLICATION usage



maxzsim via SQLMonster.com
5/29/2006 1:16:51 AM
Hi All ,


I read from BOL abt this NOT FOR REPLICATION is uses primarily for identity
values.

I have the following situation

I am creating a trigger that actually updates/insert records into tblA in
DB_A but this tblA is involved in replication to tblA in DB_B so should the
"NOT FOR REPLICATION" be used in the trigger ?

appreciate ur advice

tks & rdgs

--
Message posted via SQLMonster.com
Hilary Cotter
5/29/2006 9:42:23 AM
Yes, it should be used if

1) the table the trigger is writing to is not published.
2) you need the trigger to be enforced on the subscriber for DML originating
on the Subscriber from non-replication processes

--
Hilary Cotter
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]

maxzsim via SQLMonster.com
5/31/2006 5:13:05 AM
tk you

[quoted text, click to view]

--
AddThis Social Bookmark Button