Click here to Skip to main content
15,908,013 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi


I currently have an application which runs on a server.

The server ran a windows update and when i looked at one of my tables there is a jump in the id from 52182 to 53182.

I have looked at the trace logs and there is nothing showing that records were added or deleted.

is there a way for me to trace those 1000 records or could there be a reason for why those 1000 ids have been skipped?
Posted

1 solution

Obviously there has been some INSERT attempt of 1000 lines in the table that did not succeed. In this case, the identity field is still increased.

My advise is: you should not bother about these 1000 ids that were not affected and will not be. This could be a problem if you are running out of available ids, which is not the case here apparently.
I do work with databases/identity fields on a daily basis; I never care about having contiguous identity values, IMHO this has to be handled by the database system, not the developpers nor the users.
 
Share this answer
 
Comments
isi19 27-Jan-14 5:14am    
how could i trace those records that failed to insert?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900