Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Breaks in Identity sequence

Status
Not open for further replies.

dragonwell

Programmer
Oct 21, 2002
863
0
0
US
What are the reasons why a table with an Int Identity column would be missing records of certain sequences (aside from someone actually deleting)? The obvious answer is if a record was inserted during a transaction but the transaction was rolled back. But is there some other condition that would cause it?

Thanks

[blue]_______________________________________[/blue]
Business Logic:"AND when tweetle beetles battle with paddles in a puddle, they call it a tweetle beetle puddle paddle battle AND..." - Dr. Suess
 
Or the identity isn't setup to use every number (but that's rare).

If a table is replicated with transactional or merge replication then you can also have gaps.

Denny
MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005)

--Anything is possible. All it takes is a little research. (Me)
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top