Notes from the MagicPASS Holiday Party
I haven’t been to a MagicPASS meeting in a while, so it was nice to reconnect with the group at...
2011-12-14
666 reads
I haven’t been to a MagicPASS meeting in a while, so it was nice to reconnect with the group at...
2011-12-14
666 reads
A couple months back the laptop my wife uses was fading away, the internal power connector was broken/barely working and...
2011-12-14
637 reads
The Shredder Challenge was a contest sponsored by DARPA to find ways of putting shredded documents back together. Take a...
2011-12-13
847 reads
Ran across this during my daily reading, a post by Jeff Stibel on Why I Hire People That Fail. The...
2011-12-12
776 reads
My first outing of the new year will be at the IT Pro Camp here in Orlando, working on some...
2011-12-12
644 reads
One of our small holiday traditions is that we bake at least one home made dessert. Hard to beat the...
2011-12-09
643 reads
Sixkill is the 39th Spencer novel, and the last that was written by Robert Parker before his death. The plot...
2011-12-08
641 reads
My perception of the tablet market has been that the iPad is king, but at a kingly price. If I...
2011-12-07
796 reads
For me the Wednesday before Thanksgiving was a quiet day at work. It was one of those ‘everyone is leaving...
2011-12-06
607 reads
On my list of things to get done this week is register for SQLRally 2012 in Dallas. It’s a quick...
2011-12-05
496 reads
The slidedeck and the SQL scripts for the session Indexing for Dummies can be...
By Chris Yates
Change is not a disruption in technology; it is the rhythm. New frameworks appear,...
No Scooby-Doo story is complete without footprints leading to a hidden passage. In SQL...
Comments posted to this topic are about the item Don't Forget About Financial Skills
Comments posted to this topic are about the item Building a Simple SQL/AI Environment
Comments posted to this topic are about the item Checking Identities
The DBCC CHECKIDENT command is used when working with identity values. I have a table with 10 rows in it that looks like this:
TravelLogID CityID StartDate EndDate 1 1 2025-01-11 2025-01-16 2 2 2025-01-11 2025-01-16 3 3 2025-01-11 2025-01-16 4 4 2025-01-11 2025-01-16 5 5 2025-01-11 2025-01-16 6 6 2025-01-11 2025-01-16 7 7 2025-01-11 2025-01-16 8 8 2025-01-11 2025-01-16 9 9 2025-01-11 2025-01-16 10 10 2025-01-11 2025-01-16The docs for DBCC CHECKIDENT say this if I run with only the table parameter: "If the current identity value for a table is less than the maximum identity value stored in the identity column, it is reset using the maximum value in the identity column. " I run this code:
DELETE dbo.TravelLog WHERE TravelLogID >= 9 GO DBCC CHECKIDENT(TravelLog, RESEED) GO INSERT dbo.TravelLog ( CityID, StartDate, EndDate ) VALUES (4, '2025-09-14', '2025-09-17') GOWhat is the identity value for the new row inserted by the insert statement above? See possible answers