Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get PK/IDENTITY for the next record?
Message
From
31/08/2006 23:22:26
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01150231
Message ID:
01150292
Views:
29
Since you want this to be sequential and not skip any numbers, the only way to do it is to get the number when the record is inserted. But, how will you handle deletes?

>This is what I want to avoid and I was wondering if it is possible to "lock" the identity. By your question and thinking logically I see that what I am trying to do is probably impossible. Right?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform