The Fallacy of Internal Access Only
In the wake of Shell Shock, I’ve seen some vendor advisories indicate that while their product is vulnerable, it’s only...
2014-10-07 (first published: 2014-09-30)
7,117 reads
In the wake of Shell Shock, I’ve seen some vendor advisories indicate that while their product is vulnerable, it’s only...
2014-10-07 (first published: 2014-09-30)
7,117 reads
PASS has taken a lot of heat recently. A few folks have pointed out that you only seem to hear...
2014-09-29 (first published: 2014-09-24)
6,777 reads
Note: I feel this post is important enough to post across all my blogs.
September is Childhood Cancer Awareness Month here...
2014-09-09
550 reads
I will be given a webinar on how to audit SQL Server through MSSQLTips.com.
Webinar Registration Link
The abstract:
Don’t become a statistic....
2014-09-03
506 reads
I was tagged by Mike Walsh (blog | twitter) in his post 4 Attitudes I Wish I Had Earlier As a...
2014-09-05 (first published: 2014-08-28)
8,123 reads
Anything we can do to automate our builds and deployment should be considered. After all, the point isn’t just to...
2014-08-28 (first published: 2014-08-25)
7,614 reads
If you haven’t already, please read Denise McInerney’s post about why PASS no longer stands for the Professional Association for...
2014-08-20
656 reads
I had the opportunity to write another guest post at SQL Authority:
Finding Out What Changed in a Deleted Database
This one...
2014-08-14
1,348 reads
I was reading a book about network security monitoring and it mentioned The Cuckoo’s Egg by Cliff Stoll. Stoll’s book has been...
2014-08-13
515 reads
My guest editorial is live on SQLServerCentral.com. My argument is a simple one: we don’t care about data and IT...
2014-08-11
490 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