SQL Server: DBCC CHECKDB Command with Complete Explanation
SQL Server is used widely for the management of database. It is possible that the data gets corrupt due to...
2017-03-17
2,507 reads
SQL Server is used widely for the management of database. It is possible that the data gets corrupt due to...
2017-03-17
2,507 reads
This post is about a reporting services configuration issue that you will face after changing the database server name. I’ve...
2017-03-10
271 reads
This post is about a reporting services configuration issue that you will face after changing the database server name. I’ve blogged about Changing SQL Server name and warned on...
2017-03-10
7 reads
This post is about a reporting services configuration issue that you will face after changing the database server name. I’ve blogged about Changing SQL Server name and warned on...
2017-03-10
6 reads
Output-only parameters do not exist in the T-SQL procedures. They are all either input-only or input/output.
The OUTPUT keyword in the...
2017-03-07
386 reads
Output-only parameters do not exist in the T-SQL procedures. They are all either input-only or input/output. The OUTPUT keyword in the procedure’s definition or its invocation, designates the input/output...
2017-03-07
13 reads
Output-only parameters do not exist in the T-SQL procedures. They are all either input-only or input/output. The OUTPUT keyword in the procedure’s definition or its invocation, designates the input/output...
2017-03-07
17 reads
Database cloning is a new feature supported in SQL Server. Only SQL Server 2014 SP2 and SQL Server 2016 SP1...
2017-02-27
707 reads
Database cloning is a new feature supported in SQL Server. Only SQL Server 2014 SP2 and SQL Server 2016 SP1 support cloning. The command syntax is very simple [crayon-5e81b52ed8fb5359335187/]...
2017-02-27
22 reads
Database cloning is a new feature supported in SQL Server. Only SQL Server 2014 SP2 and SQL Server 2016 SP1 support cloning. The command syntax is very simple [crayon-5e96566157e7c824875345/]...
2017-02-27
5 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