T-SQL Tuesday #49: Topic is … Wait for It …
Have you been waiting to hear about this month’s T-SQL Tuesday topic? Here’s the announcement, right here and right now....
2013-12-05
1,014 reads
Have you been waiting to hear about this month’s T-SQL Tuesday topic? Here’s the announcement, right here and right now....
2013-12-05
1,014 reads
The final day of this six part series, Introduction to Integrity, sponsored by Idera and their new free tool SQL...
2013-09-19
1,108 reads
We’re approaching the end of our six part series Introduction to Integrity, sponsored by Idera with our last two postings...
2013-09-17
1,139 reads
Have you been putting off running integrity checks on your databases? Are you unsire where to start or what to...
2013-09-16
1,201 reads
It’s day four of our six part series Introduction to Integrity, sponsored by Idera, and tonight’s topic is going to...
2013-09-12
1,135 reads
For day three of this six part series Introduction to Integrity, sponsored by Idera, we will take a look at...
2013-09-10
1,208 reads
Welcome back for day two of this six part series Introduction to Integrity, sponsored by Idera. In this post, I...
2013-09-05
977 reads
I want to start a short 6 post series to serve as an introduction to integrity in SQL Server. Most...
2013-09-03
949 reads
The Certified Master and Architect community was collectively notified Friday, August 30, 10 PM Pacific Time (Microsoft Time) that the...
2013-09-01
934 reads
I’m setting my course for a new adventure, my mind on a new … undertaking. My apologies if you thought this...
2013-08-14
928 reads
By Chris Yates
The New Arena of Leadership The role of the Chief Data Officer is no...
Presenting you with an updated version of our sp_snapshot procedure, allowing you to easily...
SELECT * feels convenient, but in SQL Server it bloats I/O, burns network bandwidth,...
Comments posted to this topic are about the item The Maximum Value in the...
Hi, it isnt clear from the web if something like this should work as...
# Load ImportExcel module Import-Module ImportExcel -ErrorAction Stop # File paths $outFile = "C:\Reports\SQLReport.xlsx"...
I have a table with this data:
TravelLogID CityID StartDate EndDate 1 1 2025-01-01 2025-01-06 2 2 2025-01-01 2025-01-06 3 3 2025-01-01 2025-01-06 4 4 2025-01-01 2025-01-06 5 5 2025-01-01 2025-01-06I run this code:
SELECT IDENT_CURRENT('TravelLog')I get the value 5 back. Now I do this:
SET IDENTITY_INSERT dbo.TravelLog ON INSERT dbo.TravelLog ( TravelLogID, CityID, StartDate, EndDate ) VALUES (25, 5, '2025-09-12', '2025-09-17') SET IDENTITY_INSERT dbo.TravelLog OFFI now run this code.
DBCC CHECKIDENT(TravelLog) GO INSERT dbo.TravelLog ( CityID, StartDate, EndDate ) VALUES (4, '2025-10-14', '2025-10-17') GOWhat is the value for TravelLogID for the row I inserted for CityID 4 and dates starting on 14 Oct 2025? See possible answers