Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Identity PK field number skipped about 1000 recs
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01634660
Message ID:
01634664
Views:
32
>>Hi,
>>
>>A customer just called me and reported that one of the main tables of the application had the PK (visible but not editable by the user) increased by about 1000 records. This field, Order Number, was about 158 yesterday and now they see it as 1136 (around that). I remoted to the SQL Server and indeed see that the PK number skipped many records. This field is PK and it is Identity with increment 1.
>>Any possible explanation for how this could occur?
>
>This is a known problem with identity column that occurs when the server is re-started and this is by design according to MS
>
>https://connect.microsoft.com/SQLServer/feedback/details/739013/alwayson-fail
>
>https://social.msdn.microsoft.com/Forums/sqlserver/en-US/3d256650-0e94-4d0f-8b52-0ba6e1903215/primary-key-auto-incrementing-by-1000-instead-of-1?forum=transactsql

First, thank you. So someone must have restarted the SQL Server. Do you know how to see when/who did it?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform