all groups > sql server replication > august 2005 >
You're in the

sql server replication

group:

table relationship in replication


table relationship in replication Lynn
8/11/2005 4:20:01 PM
sql server replication:
Hi,

How to setup replication properities when lots of table have contstrains and
relationship? I am setting a snapshot replication, but the push task failed
with PK and FK constrains. Please advise.
--
Best Regards,

Re: table relationship in replication ChrisR
8/11/2005 4:55:53 PM
RClick Publication/ Props/ Snapshot/ Before applying this snapshot, exec....
Pop a script in there to drop the constraints.


[quoted text, click to view]

Re: table relationship in replication Lynn
8/11/2005 5:03:01 PM
Chris,

Thank you. I saw the other post for this issue. Does drop constraints
would affect any activity or action in production database, or just affect
the publish article?

Thank you again.
--
Best Regards,

Lynn


[quoted text, click to view]
Re: table relationship in replication Paul Ibison
8/12/2005 9:21:20 AM
Lynn,
the script you'll need is defined by yourself. EG in our system we'll drop
FKs in the Pre-snapshot script and Readd them along with permissions and
FTIs in the post-snapshot script. These scripts are only applied on the
subscriber and never the publisher.
Cheers,
Paul Ibison

AddThis Social Bookmark Button