Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identity PK field number skipped about 1000 recs
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01634660
Message ID:
01634664
Vues:
31
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform