View Single Post
Old 03-24-2009, 08:00 PM   #2 (permalink)
kmote
 

Join Date: Jul 2005

Location: England

Posts: 2,162

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default Re: auto-increment identity column

Not sure specifically about MS products but if it is like everything else it will go from the highest and will not go back on itself too "fill in" deleted records. The easiest way to confirm whether the field is auto-incrementing is either to look at the table structure or to do an sql insert explicitly giving the other fields and their values but not the ID. If the ID is, as it should be - an auto-incrementing primary key, the database will insert an incremented ID for you.
__________________
MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11


There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page
kmote is offline