Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identity in SQL table is incorrect?
Message
 
 
À
16/08/2006 10:08:44
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01145992
Message ID:
01146088
Vues:
49
>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.


I dunno, but why would you want to show a PK in a textbox?

Here's hoping all is well in Maine. It's looking highly unlikely that I will make it out there this summer.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform