Automatically resolve primary key merge conflict

前端 未结 3 1667
说谎
说谎 2021-01-23 01:16

could you please suggest me the way I could automatically resolve primary key conflicts during a merge between Publisher and Subscriber. It seems Sql Server doesn\'t do it out o

3条回答
  •  渐次进展
    2021-01-23 02:13

    This isn't an easy solution (since you've presumably already designed your database with auto-incrementing int keys), but using GUID ("uniqueidentifier") for your primary keys will solve your PK collision problem.

提交回复
热议问题