Problemet: ved kopiering af data fra temp tabeller til tabeller i en replikering sker der en "violation of constraints - duplicate rows" - OK - den er klar nok. Det underlige er, at der ikke er duplikatte nøglefelter da de er sorteret med distinct. Hvad sker der? Nogle ideer til at omgå problemet?
Well to be honest I dont use replication so I wouldnt know the easiest method. This is taken from Books Online, which I suggest you read.
Conflicts Occur When Merging Newly Inserted Rows That Contain Identity Columns If conflicts occur when merging newly inserted rows that contain identity columns, use the Replication Conflict Viewer to determine the cause of the conflict. An insert conflict is usually caused by inconsistent enforcement of constraints between Publishers and Subscribers. Also, identity columns must be used with caution. You must assign each Subscriber that will insert new rows containing an identity a unique range of identity values.
I am not using ms sql inherited replicator technique but are using osql - well maybee there is somewhere a check for constraints perhaps on the recieving table......
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.