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

sql server replication : Not for replication


Pauly C
3/28/2006 8:27:01 PM
Is there a way to add the "Not for replication" switch for triggers and
foreign keys other then dropping and adding them again?

Thanks in advance,
Paul Ibison
3/29/2006 12:00:00 AM
You can use ALTER TRIGGER but for the FKs you'll need to drop and recreate.
These scripts can help you identify them:
http://www.replicationanswers.com/Script15.asp
http://www.replicationanswers.com/Script11.asp
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Pauly C
3/29/2006 5:51:05 AM
Paul,

Thank you for the links, I’ve already used those scripts since I have your
site bookmarked . I had to write a script to deploy the NFR attribute
addition. I wrote a script last night just incase there wasn’t a way to just
flick the NFR switch on them. I can send it to you if you like; it seems to
be working pretty well.

Thank you
Pauly C


[quoted text, click to view]
Paul Ibison
3/29/2006 4:21:13 PM
Please can you post it here so others can see it, and please also send it to
paul . ibison @ replicationanswers . com and I'll post it up (under your
name).
Cheers,
Paul



[quoted text, click to view]

AddThis Social Bookmark Button