Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Replication doesnt copy check and default constraints

$
0
0

Hi,

i'm trying to create a transactional replication from DB A to DB B. Definition of A and B are the same, and i want to keep the B database with all the indexes, constraints, keys, ...

But after the snapshot is done, some of the constraints disappear. In Article properties, i set the "Copy default value specifications" and "Copy check constraints" to true. However, check constraints are removed from subscription DB and also some of the default constraints. I noticed, replication keep only constraints with constant default value (for example 0). If the value is function, its gone. The function exists in both databases, so i think, there is no problem with keep this constraints in subscription database.

I'm using latest SQL Server 2016 (developer edition).

Is this a bug, or a normal behavior?


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>