How to Configure E-mail in SQL Server Step by Step–TIP #96
For different reason we need to send database report , data and other SQL Server database related stuff using E-mail . SQL ...
2015-04-21
621 reads
For different reason we need to send database report , data and other SQL Server database related stuff using E-mail . SQL ...
2015-04-21
621 reads
Although , It is out of box but I would like to share here. I am very choosy in food. When...
2015-04-16
550 reads
SET XACT_ABORT is one of the hidden gem we can say. It is helpful in many ways.
Let me explain by...
2015-04-14 (first published: 2015-04-04)
8,155 reads
Hello friends,
Many times we face space issues with our database. To resolve this problem SQL Server 2005 provided one more...
2015-03-23
769 reads
In last post TIP #91 we talked about What is Data compression ? What are the features ? Now in this tip...
2015-03-11
617 reads
SQL Server is a uniquely designed Relational Database Management System developed by Microsoft. Its basic functionalities include storing, manipulating and...
2015-03-09
728 reads
A part from performance many times we faced challenges related to space of our database. Sometimes our database is actually...
2015-03-08
641 reads
When we heard “Kill” then first impression of this word is very bad. We always scare with this word.
In...
2015-03-03
652 reads
Dear Friends,
In my last article (TIP 87) I wrote about PWDENCRYPT. I forgot to write few details but thanks to...
2015-02-28
1,253 reads
I the last tip TIP#88 we saw how to encrypt a password. Now in this tip I would like to...
2015-02-25
934 reads
By HeyMo0sh
Over time, I’ve realised that one of the hardest parts of cloud management isn’t...
By HeyMo0sh
One of the biggest challenges I’ve faced in cloud operations is maintaining clear visibility...
By Steve Jones
I come to Heathrow often. Today is likely somewhere close to 60 trips to...
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