Debugging query timeouts by sampling blocking – part 2
In part 1 I explained how I was hunting for the root cause for some query timeouts that happened every...
2012-03-20 (first published: 2012-03-15)
2,898 reads
In part 1 I explained how I was hunting for the root cause for some query timeouts that happened every...
2012-03-20 (first published: 2012-03-15)
2,898 reads
I like hunting. Not the kind where you are walking around the forrest and trying to find a target. No,...
2012-03-10
2,110 reads
With SQL Server 2008 Microsoft added the CDC feature to SQL Server enterprise edition. I haven’t come to play around...
2012-03-05
8,057 reads
A few days back I was presented with a theoretical challenge, and now I thought I would share my solution...
2012-02-29 (first published: 2012-02-21)
9,068 reads
In November last year, our very own Henrik Sjang Davidsen did a session at the ANUG event called Masters at...
2012-02-14
1,015 reads
The main focus of this blog is to write about SQL Server related stuff – but now and then in the...
2012-02-07
795 reads
Over the next few weeks / months there will be plenty of opportunities to meet the Geniiius family, since we started...
2012-01-31
1,576 reads
Over the last couple of months I have on several occasions found myself in need of test data for demos,...
2012-01-24
14,375 reads
In this weeks blog post we will have a look at how easy it is to combine FileTables and FullText...
2012-01-18 (first published: 2012-01-12)
2,927 reads
I have been working with SQL Server for quite a few years now, and it still happens quite often that...
2012-01-17
6,277 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...
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
Comments posted to this topic are about the item Answering Questions On Dropped Columns
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