Shrinking the log file script for SQL server database
AdvertisementsShrinking the log file script for SQL server database
This script mainly for a DBA’s, because most of the time...
2011-04-10
2,015 reads
AdvertisementsShrinking the log file script for SQL server database
This script mainly for a DBA’s, because most of the time...
2011-04-10
2,015 reads
Advertisements
INDEX DEFRAGMENTATION SCRIPT SQL 2000
Index Defragmentation is one of the most important DBA tasks. This will significantly improve query performance....
2011-03-12
1,887 reads
Advertisements
T-SQL Tuesday #015: Automation:
I am very much interested to participate in the T-SQL Tuesday event party. I have seen the...
2011-02-06
1,000 reads
AdvertisementsHow to setup the DB mail using Gmail account
In this article I am going to show the database mail setup...
2011-02-05
747 reads
AdvertisementsSQLskills Master Immersion Events 2011 competition
I have completed engineering and my native is M.Uthamasolagan (village near chidambaram ). I have...
2011-01-24
629 reads
Advertisements
One day I got a call from my junior DBA. She asked me, how can I find out the port...
2011-01-19
574 reads
Happy moments in 2010
Hi all wish you a happy new year.
I know it’s a late post anyway I am going...
2011-01-07
1,428 reads
AdvertisementsClustered index vs Non clustered index structure
Clustered and Non clustered indexes are stored in a B – tree structure .
Clustered...
2010-12-02
2,642 reads
Advertisements
INDEX DEFRAGMENTATION SCRIPT for 2008 / 2005
I dedicate this article to my senior DBA “Roshan Joe Joseph” who has helped me...
2010-11-23
1,504 reads
Advertisements
In this article, I am going to discuss about the basics of SQL server which is helpful for newbies.
SQL–Structured Query...
2010-11-23
1,576 reads
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...
By Brian Kelley
If your organization is spending money, then meaningful results are a must. Pen testing...
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