Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Identity in SQL table is incorrect?
Message
From
16/08/2006 10:08:44
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Identity in SQL table is incorrect?
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01145992
Message ID:
01145992
Views:
70
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.
Next
Reply
Map
View

Click here to load this message in the networking platform