Link to home
Start Free TrialLog in
Avatar of FastEddie___
FastEddie___

asked on

Disable Foriegn Key Relationships for Replication

Is there a SQL Server 2000 script that will automatically uncheck the "Enforce relationship for replication" checkbox?

I am trying to replicate data accross SQL servers and need to disable foriegn key relationships.

I don't want to have to go to each table and do it manually from:
Table Properties - Relationships - Enforce relationship for replication (checkbox).

Any help would be greatly appreciated.

-Eddie

SOLUTION
Avatar of Lowfatspread
Lowfatspread
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FastEddie___
FastEddie___

ASKER

A co worker found out that NOT FOR REPLICATION is the 11th bit in the status field, so we did bitwise OR on the value in status field with 1024 and it unchecked the Enforce relationship for replication checkbox.

I appreciate your help though.

-Eddie