Bob Lewiston

Bob Lewiston

  • NA
  • 88
  • 0

auto-increment identity column

Mar 24 2009 7:07 PM

Using Visual C# 2008 Express and SQL Server 2008 Express, I would like to insert new records into database "AdventureWorks", table "Person.Contact".

 

To my surprise, this table's int-value identity column "ContactID" does not appear to be auto-increment. I don't know how to confirm for sure that this is so. (I have installed SQL Server Management Studio, if that helps.)

 

How can I confirm this, and how can I make ContactID auto-increment?

 

And incidentally, will auto-increment just start incrementing from the highest existing ContactID, or will it first use lesser ContactID values that are absent from the table (presumably due to deletions)?


Answers (2)