You are here: Re: Unaccountable jump in Identity column value « MsSQL Server « IT news, forums, messages
Re: Unaccountable jump in Identity column value

Posted by teddysnips on 08/20/07 11:03

On Aug 18, 2:37 pm, Gert-Jan Strik <so...@toomuchspamalready.nl>
wrote:
> Well, maybe someone did a large insert (of thousands of rows) and
> cancelled the insert during operation.

Under normal operation of the system this is completely impossible. I
cannot, however, guarantee that this was not done maliciously.

> Anyway, IMO an Identity column is a very poor idea if you really need a
> sequence without gaps. Identity columns are simply not meant to do that.
> If that is what you want, then I would remove the Identity property and
> determine the sequence number myself (using a reliable method).
>
> If the Identity column is simply used to generate a unique meaningless
> surrogate key, then I wouldn't worry about gaps, and would attempt to
> analyze it either...

The presence of a gap is not important - the purpose of the Identity
column is purely for purposes of providing a unique number for the
record. However, the presence of the gap IS important because there
are other problems with databases on this server and makes me think
that there's something seriously amiss.

Edward

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация