View Single Post

   
  #6 (permalink)  
Old 02-29-2008, 06:31 AM
Erland Sommarskog
 
Posts: n/a
Default Re: Identity In SQL VS Autonumber In Access

Madhivanan (madhivanan2001@gmail.com) writes:
> Select Max(IdentityField)+1 from TableName


That's not a good thing, since the value you get may not actually be
that value, if another process comes in between.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Reply With Quote