Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identity in SQL table is incorrect?
Message
De
16/08/2006 10:08:44
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Identity in SQL table is incorrect?
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01145992
Message ID:
01145992
Vues:
69
I have a Sql table (Pur_head) with the primary key (ReqId) set as the identity. The last record in the table shows the ReqId as 58873, so the next record might be 58874, I would expect.

The Pur_head.vb shows this as the primary key as well.
When the code creates a new record, the textbox that shows the ReqID shows 58874. This might have been correct.

Instead the actual last record, using SQL Server Enterprise, shows the ReqId as 58954. It's this number because there were a lot of records deleted from the Sql table.

So why isn't the textbox showing 58954?

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform