SQL Server 2008 end of support
2018 is about to end. In the case you didn't know or haven't heard, the extended support for SQL Server...
2018-12-21
377 reads
2018 is about to end. In the case you didn't know or haven't heard, the extended support for SQL Server...
2018-12-21
377 reads
2018 is about to end. In the case you didn't know or haven't heard, the extended support for SQL Server 2008 (and R2) reaches to an end in 2019.
This...
2018-12-21
23 reads
Today I'm getting back to basics, whether you are new or veteran with the database engine you need a tool to get into, write queries, do some monitoring, tuning,...
2018-06-28
758 reads
Today I'm getting back to basics, whether you are new or veteran with the database engine you need a tool...
2018-06-27
1,392 reads
Problem:
Early in the morning I received emails requesting for support as the applications were failing to connect to one of...
2018-06-18 (first published: 2018-06-05)
4,669 reads
Problem:
Early in the morning I received emails requesting for support as the applications were failing to connect to one of the production servers that are configured with Always On,...
2018-06-05
38 reads
This script is from my library and I use it to review what is going on with my transactional replications,...
2018-04-18
420 reads
This script is from my library and I use it to review what is going on with my transactional replications, try to remove statements that didn't get purged for...
2018-04-18
28 reads
SQL Server is now compatible with different Linux distributions, and there is a lot of excitement about it.
How ever one of the main questions when ever you say SQL...
2018-03-01
30 reads
SQL Server is now compatible with different Linux distributions, and there is a lot of excitement about it.How ever one...
2018-02-28
4,179 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