SQLSaturday Round Table at the PASS Summit (Early Reminder)
Once again this year we’ll be holding a meeting open to all SQLSaturday event leaders and key team members (and...
2011-07-11
613 reads
Once again this year we’ll be holding a meeting open to all SQLSaturday event leaders and key team members (and...
2011-07-11
613 reads
I was reviewing some code recently that has been in production for a while and I saw something like this:
set...
2011-07-11
586 reads
I saw an article in the newspaper titled How to Visit 30 Ballparks in 35 Days This Summer. I think...
2011-07-08
666 reads
My children never cease to delight me in all kinds of ways, but never more when they come up with some...
2011-07-08
514 reads
This post is password protected. To view it please enter your password below:
Password:
2011-07-08
590 reads
Just got an email from the Space Coast User Group that Maciej Pilecki (@DrHouseOfSQL) will be doing a presentation to...
2011-07-07
612 reads
If it hasn’t happened already we should be close to beginning the election cycle for the 2012 election. Last year...
2011-07-07
596 reads
We’re going to be hosting two pre-conference seminars this year in Orlando on Friday, September 23rd, and we’re looking for...
2011-07-07
415 reads
Funny how you can work with data a long time and still run into something new. I’ve been working on...
2011-07-06
745 reads
Today we have a guest editorial from Andy Warren. We often find that many DBAs fall into the job as accidental DBAs, and need more training. Is a boot camp the way to get them up to speed quickly?
2011-07-06
236 reads
By Steve Jones
Fear is fueled by a lack of imagination. The antidote to fear is not...
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,...
Why is sql doing a full scan VS seeking on the index? I've included...
We have a report that has multiple tables that list the top 15 performers...
We have a tool called DB Moto that reads journals (like t-logs) and replicates...
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