Comments
6 comments
-
double post..
-
If you refresh the comparison at any point the SEED information isn't included in the data as it's actually part of the SCHEMA of the table. You can force this to happen by refreshing the schema on the tables & views tab of the project configuration.
The SEED is simply copied from one database to another so if there have been a large quantity of inserts on the target as opposed to the source and not all of the data is removed in the target when attempting to move the SEED across it puts it at a value where there is still data.
If you are simply doing a compare and synch straight off I'm not sure why this would be causing an issue. Try refreshing the schema and the the data comparison straight before the synch.
There may also be an issue if you're changing direction of the synchronization as there seems to be a bug in our system about that although I'm not sure if it's still valid.
Hope this gives you some ideas. -
tnx!
updating the schema seems to resolve the issue
still wondering why it didn't happen with the previous version of SQL Data Compare.. -
It would have done - although you may have been lucky enough that the reseed value was still valid.
This is a slight annoyance in SQL Data Compare so we've got an issue in our bug tracking system to address this at some point.
Glad it's working for you now. -
Is there any time frame for when this issue will be fixed?
If I understand the problem correctly it gets the values for the reseed when it evaluates the schema. The problem we are hitting on many of our compare runs is the schema is checked at the beginning of the process, then it takes 5-10 min for the tables to compare before the synchronization script is ready. But during that 5-10 min a new row is added to our tables. The inserts are added to the script, but the reseed value is now incorrect. So the destination database now gets an error if a row is inserted into that table.
We are just finishing our evaluation of your software and this seems like it could become a bit of an issue for us if a fix is not going to be available in the near future.
Thanks!
- Sean -
If your data is being changed between the start of the comparison and the synchronization, then reseeding the identity value does not make much sense, exactly because of the conflicts you are experiencing. You can control whether identity columns should be reseeded via project options.
Use Edit project-> Options -> Reseed identity columns
If your databases seem to follow the above usage pattern, then you can even save this option as "My Defaults" so that new projects will not have the "Reseed identity columns" set.
Kind regards,
Andras
Add comment
Please sign in to leave a comment.
as you can see the script deletes the rows where the id=1043, 1044 and 1045
so it should reseed on 1042 which it does not..
instead it reseeds on 1035 and resulting in a primary key error in my app.
why does it reseed wrong?
this is very annoying..
edit:
im working with SQL Data Compare 6 version 6.1.1.308
and i never encounterd this bug in version 6.0