29 July 2009 ~ View Comments

Identity column starts from zero instead of one

I was experiencing a strange problem. Identity field of a table is set to [1,1] by generating script. Every time, when I drop the whole database, and then re-create it by running script in SQL Server 2005 Management Studio, and then insert a record into that table programmatically, SQL Server set identity field value of [...]

Continue Reading

Tags: ,