Looking for a new SQL Server book? Look no further…
So I know it’s been a while since I last posted on this blog, but I promise I haven’t been...
2013-10-18 (first published: 2013-10-10)
3,339 reads
So I know it’s been a while since I last posted on this blog, but I promise I haven’t been...
2013-10-18 (first published: 2013-10-10)
3,339 reads
Once upon a time, in a blog post far, far away, I started talking about auditing in SQL Server. And...
2013-04-15
621 reads
Digging the new logo
Last week I was fortunate enough to attend SQLSkills IE1 class in Tampa. Fortunate to have an...
2013-02-15 (first published: 2013-02-11)
2,470 reads
Last month I mentioned that I’d like to start including Oracle stuff on this blog. I’m getting back into that...
2013-01-28
694 reads
So, you may have noticed that things have been a little quiet around here of late. Sorry about that, I’ve...
2012-12-21
803 reads
On the fourth Wednesday of each month, the Women in Technology Virtual Chapter of PASS has its monthly conference call...
2012-11-28
1,251 reads
On the fourth Wednesday of each month, the Women in Technology Virtual Chapter of PASS has its monthly conference call...
2012-10-24
1,092 reads
One thing I failed to touch on during my series on SQL Audit was the use of user-defined events in...
2012-10-18
3,220 reads
This past weekend I made the drive from Cleveland to Pittsburgh to attend SQLSaturday #171. They picked the perfect time...
2012-10-09
569 reads
On the fourth Wednesday of each month, the Women in Technology Virtual Chapter of PASS has its monthly conference call...
2012-09-26
1,116 reads
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...
By James Serra
A bunch of new features for Microsoft Fabric were announced at the Microsoft Fabric Community...
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