Checking SQL Configuration with Pester & Dbatools
I know, I know, there’s loads of different ways to test the configuration of SQL Server but I’ve started playing...
2017-12-13 (first published: 2017-11-29)
1,843 reads
I know, I know, there’s loads of different ways to test the configuration of SQL Server but I’ve started playing...
2017-12-13 (first published: 2017-11-29)
1,843 reads
Fun week, lots of stuff to organise and prepare for! Whilst I’ve had some downtime I’ve been reading…
Write your first...
2017-11-17
291 reads
I’ve previously blogged about running SQL Server in ACS but Microsoft has now released a new version still called Azure...
2017-11-15
986 reads
I find it absolutely amazing that I’ve been writing this blog for four years. My first ever post My 5...
2017-11-13
226 reads
Morning all! PASS Summit is coming next week but unfortunately I can’t make it this year. I hope everyone who...
2017-10-27
410 reads
At SQL Saturday Holland a few weeks ago I was (surprise, surprise) chatting about containers and mentioned that I hadn’t...
2017-11-06 (first published: 2017-10-25)
1,751 reads
Over the last few weeks I’ve spoken at a few conferences, the last of those being SQL Relay.
For those of...
2017-10-23
283 reads
One question that I get asked regularly is, “can you limit the host resources to individual containers?”
This is a great...
2017-10-04
444 reads
Last week I asked the following question on twitter: –
I had a load of responses from a lot of DBAs...
2017-10-02
273 reads
Another busy week almost over and today I’m heading to Utrecht for SQL Saturday Holland! Never been to Utrecht before...
2017-09-29
497 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