|
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.
|
|
Tahir A. Syed on
10/27/2008
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.
|
|
Morten Dvinge on
4/26/2011
Yes .... And what to do about it? Think that is more interesting to tell
|
|
|
Good video. There are always small things that skip your mind.
|
|
|
Just use a table containing the table name and next value, and increment that value at each insert using a trigger, everything bound in a transaction.
|
|
|
Simple and quick example of identity Gap. I like it.
|
|
|
So, you're saying there is no solution to recapture the missing values in production?????
|
|
|
Simple, Clear, Right to the point.
|
|
Tom Stafford on
4/26/2011
Good information
|
|
|
Almost seems like the video was cut off and that it should have kept going. Maybe that is how the author meant it to be though.
|
|
Maurice Ivory on
4/26/2011
It was okay
|
|
|
I assumed I knew what an "Identity gap" is, and I did, but I never thought to look at an execution plan for such an insert. Thanks for teaching me WHY it happens the way it does.
|
|
Lanny Mullis on
4/26/2011
Could have explained how to fix identity gaps for those who want to.
|
|
|
Wow, I didn't know that!
|
|
|
I'm way behind on my SQL and this will be very helpful. Are there new videos like this every day ... week ... month ... ??
|
|
|
simple but efficent
|
|
Steve Harris on
4/26/2011
Good explanation, but how is this information helpful?
|
|
|
nice explaination, but is there a way to correct it without using the reseed function?
|
|
|
Good tip!
|
|
|
I didn't know you could right-click and view "properties" in the execution plan. This was the most useful part :)
|
|
|
Audio quality was lower than expected for this video.
|
|
|
Interesting
|
|
Charlie Bruno on
4/27/2011
Excellent topic and presentation.
|
|
|
Good information to have.
The information can be enhanced if the author commented if having an identity gap is necessarily bad and if so, is there a way to resolve it?
I do not think, it is bad, unless you have a really large data set and you are suddenly running out of identity values. I believe, we need to start considering options, even before we reach that point.
|
|
Martin Miller on
4/27/2011
Good to know. Thanks.
|
|
|
Short, sweet, and to the point. The explanation using the actual execution plan drives the point home. Well done, Grant.
--Jeff Moden
|
|
|
Nice video, but didn't mention how to avoid the identity gaps.
|
|
|
Wow... I had no idea about failed inserts and indentity columns.
|
|
|
I always wondered what caused this. Thanks!
|
|
|
good one
|