Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

About Identity Specification in SQL Server 2008

$
0
0

I have a table with an Identity Specification. It is working fine.

The first record is "1" and then the second is "2" and so on.

My problem is...

Perhaps I inserted a record, so the SQL will give "3" in the identity column. Now, I deleted the third record, and then inserted a new record to replace the record I have deleted. But SQL Server gave me "4" instead of "3". It is possible to configure the identity columns in SQL Server 2008 so that it won't skip the "3" when I already deleted "3"?


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>