Introduction to XML DML (Part 1) - Using the modify() method: insert
This is the first part of a 3 part blog which will attempt to show some different ways of how...
2012-01-16
16,218 reads
This is the first part of a 3 part blog which will attempt to show some different ways of how...
2012-01-16
16,218 reads
This is a revised post of an original article that I first published in December. Even though I thought that...
2012-01-09
258,109 reads
You can only use the position() function within an xquery predicate and can't use it to return the position value...
2011-12-28
6,770 reads
I've used SQL to generate countless blobs of xml over the years and one feature that I have come to...
2011-12-20 (first published: 2011-12-15)
8,821 reads
Database users can become orphaned for a few reasons. For example, a database restore to another instance or deleting the...
2011-10-29
1,614 reads
I know that this subject has been blogged about numerous times but I thought I'd post an alternative way of...
2011-10-28
9,000 reads
Database users can become orphaned for a few reasons. For example, a database restore to another instance or deleting the...
2011-10-20
21,481 reads
I came across this really simple best practice from BOL for the xml method exist which when used will give...
2011-10-17
1,975 reads
Is all set to be officially known as SQL 2012 and will be finally released in....... 2012!
Announced at the PASS...
2011-10-15
735 reads
SQLBits9 – “Query across the Mersey” was held in the majestic Adelphi hotel. This was my first SQLBits experience and was...
2011-10-10
896 reads
By Vinay Thakur
Continuing from Day 3 where we covered LLM models open/closed and their parameters, Today...
By Steve Jones
One of the nice things about Flyway Desktop is that it helps you manage...
By HeyMo0sh
Microsoft Fabric (not to be confused with the more general term “fabric” in DevOps)...
I'm fairly certain I know the answer to this from digging into it yesterday,...
Hi Team, I am trying to refresh the Azure Synapse Dedicated pool from production...
hi everyone I am not sure how to write the query that will produce...
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 *
FROM OPENJSON(
(
SELECT t.* FROM #test_data AS t FOR JSON PATH
)
) t; See possible answers