Last Backup Times per Database and Backup Type
This script displays the last date and time of each backup type for each database.
It’s useful when you need to...
2014-02-26
504 reads
This script displays the last date and time of each backup type for each database.
It’s useful when you need to...
2014-02-26
504 reads
Let’s say you are developing an SSIS package on your dev box to load data from an Excel file to...
2014-02-25
1,188 reads
Let's say you are developing an SSIS package on your dev box to load data from an Excel file to...
2014-02-25
3,660 reads
Madeira’s excellent course on SQL Server Integration Services starts in March, but you can get a head start here! Take...
2014-02-09
268 reads
Last week I delivered a seminar at the Expert Days 2013 event by the name of 40 Things You Didn’t...
2013-12-16
589 reads
This is a summary of my last day in the PASS Summit. I have already written about my first, second,...
2013-10-19
437 reads
This is a summary of my last day in the PASS Summit. I have already written about my first, second,...
2013-10-19
415 reads
This is my fourth day in the PASS Summit. I have already written about my first, second and third days.
The...
2013-10-18
477 reads
This is my fourth day in the PASS Summit. I have already written about my first, second and third days.
The...
2013-10-18
510 reads
This is actually the first formal day of the PASS Summit, but it’s my third day here. I have already...
2013-10-17
390 reads
By Brian Kelley
I will be leading an in-person Certified Information Systems Auditor (CISA) exam prep class...
EightKB is back again for 2026! The biggest online SQL Server internals conference is...
By HeyMo0sh
Working in DevOps long enough teaches you two universal truths: That’s exactly why I...
Hi all, I just started using VS Code to work with DB projects. I...
Comments posted to this topic are about the item Fun with JSON II
Comments posted to this topic are about the item Changing Data Types
I have some data in a table:
CREATE TABLE #test_data
(
id INT PRIMARY KEY,
name VARCHAR(100),
birth_date DATE
);
-- Step 2: Insert rows
INSERT INTO #test_data
VALUES
(1, 'Olivia', '2025-01-05'),
(2, 'Emma', '2025-03-02'),
(3, 'Liam', '2025-11-15'),
(4, 'Noah', '2025-12-22');
If I run this query, how many rows are returned?
SELECT t1.[key] AS row,
t2.*
FROM OPENJSON(
(
SELECT t.* FROM #test_data AS t FOR JSON PATH
)
) t1
CROSS APPLY OPENJSON(t1.value) t2; See possible answers