Identity reused problem

  • I have a table with id an identity column.

    Can I forbid the identity column of taking the same values of deleted ones?

    How can I resolve this issue?

  • If it is set up as an identity then it should never be re-used, unless DBCC Checkident is run against the table with reseed option set.

  • If I move the database into another server, also the identity wont be reused???

  • An identity column always increments by the SEED value. It doesn't matter which server the database is on. That's like having a VARCHAR(10). You can move the database wherever you want...it will always be VARCHAR(10) unless you change it. IDENTITY is a property of the column, not the table, database, or server and will always keep its SEED value, unless you change it.

    -SQLBill

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply