So, we tried a complete Enterprise-scale reset of ALL ids on a clone of our production SQL server repository. It took OVER 12 hours!
We decided on a different tack... We tried a local EAP clone and found it took about 2 hours!
Transfer to local EAP file (10 mins), Reset IDs in the EAP file (2 hours), transfer back to SQL Server (about 1.5-2 hours. Total time 4 hours! This happened over the weekend during some scheduled repository downtime.
All SEEMED to go well until we decide to add some new objects this morning...
We then discovered that even though we had compacted ALL the IDs (and the Reset IDs functionality
forces a compact of the EAP file to re-align the internal ID sequencers), the transfer project back to SQL Server does not. So we now have a gap from 70003 for the last object from last week and 333213 for the first object this week. Effectively, the Reset IDs was for nothing. This pattern is repeated for all the tables with gaps.
In
Transfer Project to .EAP and Compaction, I discuss (essentially) the same problem in the reverse direction. This current behaviour shows the same problem exists in the this direction.
Basically, if you do a transfer project, I can't see any point in NOT resetting the sequencers to the LAST used value for each table.
So now what to do? Do we repeat the process, but before transferring back to SQL Server, transfer up an empty project and then Reset those IDs? Then, transfer the real reset project? Will this update the sequencers correctly?
Paolo