SQL Server Save Time Managing Multiple Servers With Central Management Servers
Central Management Servers give us a way to manage a collection of SQL Servers as one, a query executed against...
2018-05-15
69 reads
Central Management Servers give us a way to manage a collection of SQL Servers as one, a query executed against...
2018-05-15
69 reads
I find myself using Apply more and more in my queries, aside from the usual reasons I’ve been finding I...
2018-05-14
40 reads
If you’re seeing SSMS hang/lock timeouts when expanding nodes in the object explorer for a database it’s almost definitely caused...
2018-05-13
47 reads
I wanted to document a couple of important tasks you should be doing as part of your SQL Server maintenance/backup...
2018-05-12
52 reads
What Are They
Database snapshots are a readonly point in time version of a database. You can use them for things...
2018-05-11
2,246 reads
When working with large amounts of data in ETL jobs it can often can sink a lot of time inserting...
2018-05-10
804 reads
For a quick introduction to transaction isolation levels see my previous post on them.
Once snapshot isolation is enabled on a...
2018-05-08
1,741 reads
The Transaction log growing is completely normal however there are situations where a transaction log can get to a state...
2018-05-07
60 reads
Trace Flags are a way to change the behavior of the SQL Server database engine. They are often used for...
2018-05-06
96 reads
For older systems where the move to READ COMMITTED SNAPSHOT (RCSI) might not be an option or you’re running a...
2018-05-05
105 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