Tracking Down tempdb usage
Determining what is causing your tempdb to grow can be difficult at times and troublesome during production issues. Luckily SQL...
2018-08-08
9,841 reads
Determining what is causing your tempdb to grow can be difficult at times and troublesome during production issues. Luckily SQL...
2018-08-08
9,841 reads
SQL Server Availability Group Auto Seeding is a wonderful thing, it saves database administrators time when setting up availability groups. ...
2018-07-30
671 reads
Keep up with SQL Server Patches with us with our feed from Microsoft. Check it out! http://vitamindba.com/sql-server-releases/
The post Keep up with...
2018-07-26
299 reads
No one likes to patch or update SQL Server, it takes time and can make for very long days. I...
2018-07-25
11,340 reads
When a space growth operation is done within SQL Server (create, restore, auto-grow) the engine places zeros across the file...
2018-07-23
130 reads
Folks, it’s time for a bit of a performance tuning exercise. Below is a real world situation where a stored...
2018-07-18
22,763 reads
I have been on a mission to find easier ways to install SQL Server. I have recently been working on...
2018-07-13
1,923 reads
Working with performance problems and query tuning can be a headache and take a lot of time. Most companies I...
2018-07-12
114 reads
Login failures are a common item to troubleshoot with SQL Server. Out of all of the possible log failure reasons...
2018-06-26
196 reads
Everyday I learn something new. A couple of days ago I posted about a problem I had with Always On...
2018-06-21
94 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