Trace Flag 3226 - Suppress all successful backups in SQL server error log
SQL server error log contain all information about how a SQL server is running, what is happening and occurring for...
2016-01-13 (first published: 2016-01-08)
22,238 reads
SQL server error log contain all information about how a SQL server is running, what is happening and occurring for...
2016-01-13 (first published: 2016-01-08)
22,238 reads
With SQL server 2016 around the corner, I would like to share some of my thought on the usage for...
2015-11-24
735 reads
If you are new to a technology, you might want to have a place to get you started. It would be great if can be free and can guide...
2015-10-02
13 reads
Recently, there are lots of questions about SQL licenses, many of them came from the fact that they starting to upgrade to 2012/2014 from their old 2005 servers as...
2015-09-30
15 reads
Welcome back to DR drill series!
In the last post (here), we have highlighted a number of ways to setup disaster...
2015-09-22
1,481 reads
Often times database administrators were asked to restore production database backup to UAT or development environment, sometimes it will needed...
2015-07-10
979 reads
Many of the companies are using third party backup software for SQL server in order to help to reduce their...
2015-07-02
2,430 reads
Finally I join Twitter myself, so if you are interested to find me through Twitter, its here.
2015-07-02
321 reads
Just would like to take a moment to say thank you to Paul Randal, who is busy with his own...
2015-04-16
334 reads
Every now and then we will need to convert datetime to string for display, and would you remember all the...
2015-04-16
445 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