sql server - What to do when IDENTITY column has been exhausted -


how reseed identity column in sql when have existing data ? there easy way perform operation data updated identities (which reflected on associations foreign keys aswell) ?

edit: happen if reach limit of identity column ? in case ? why asked question. want understand how kind of problem can solved.

there no way automatically. write own set of scripts done, not aware of comercial (ms or other) solution "compress" existing identity range. but, aaron said, why want in first place?

sql server's identity values not guaranteed free of gaps or monotonically growing. more details check out http://sqlity.net/en/792/the-gap-in-the-identity-value-sequence/

if need values monotonically growing or continuous might have develop own "value provider service".


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -