|
Comments
|
|
Good!
|
|
|
mm i coudnt see it
|
|
|
something I never knew
|
|
|
Great presentation showing the basics of the identity columns.
|
|
ML Stephens on
10/23/2008
really interesting
|
|
|
Here I thought I was going to learn something about my personality, who would have thought this was about computers.
Thanks Grant, are you going to follow-up with How the GAPs can be avoided, or was this simply a clear explanation as to how they become?
|
|
|
So is there a recommended practice to prevent the gaps from happening? Is there a rollback function?
|
|
|
Nothing new
|
|
Carla Wilson on
10/23/2008
Excellent little tidbit - makes me wonder how many gaps I've caused in my databases! :)
|
|
Grant Fritchey on
10/24/2008
It was just an explanation of how they become. Generally, gaps don't mean anything. If you really, absolutely, need a continuous run of numbers, you should use a mechanism other than IDENTITY.
|
|
|
Marvelous!
|
|
|
Thanks for the info!
|
|
|
Gaps can also be created if table data is deleted.
|
|
|
Good
|
|
|
Excellent and simple Explanation
|
|
|
Please create a way to avoid this!
|
|
Grant Fritchey on
12/27/2008
That's just it, there is no way to avoid it using the identity column. If you need absolute, perfect incrementing of numbers (and you shouldn't for just a primary key) then you can create your own mechanism.
|
|
|
Great video, short, straight to the point, and clearly demonstrates the issue with an easy to understand example.
|
|
|
But how to avoid identity gap ?
|
|
Grant Fritchey on
12/26/2009
You really can't. If a rollback occurs, an error... you get a gap. If you have to have a perfectly incremented set of values, identity is probably not your best device.
|