JSON

External Article

SQL Server JSON Functions JSON_OBJECTAGG and JSON_ARRAYAGG

  • Article

I need to construct JSON from data in our database, but I find the existing FOR JSON PATH limited when the data is not located in one single row but rather scattered over multiple rows. Is there another method on how to handle JSON data in SQL Server? Learn how to use the new SQL Server JSON Functions JSON_OBJECTAGG and JSON_ARRAYAGG in this article.

2025-03-24

SQLServerCentral Article

How to Flatten JSON in Azure Data Factory?

  • Article

When you work with ETL and the source file is JSON, many documents may get nested attributes in the JSON file. Your requirements will often dictate that you flatten those nested attributes. There are many ways you can flatten the JSON hierarchy, however; I am going to share my experiences with Azure Data Factory (ADF) […]

4.5 (2)

You rated this post out of 5. Change rating

2021-09-17

20,266 reads

Blogs

New article: Automating SQL Server Builds

By

I refresh my test SQL Servers at least monthly with a fresh VM. Setting...

Leading with Accountability: How Extreme Ownership Transforms Leadership

By

Embracing Total Responsibility In every organization there comes a moment when teams must choose...

Unlock Your Notion Data with SQL

By

If your Notion workspace feels more like a data graveyard than a command center,...

Read the latest Blogs

Forums

What is Delayed Durability in SQL Server — And Should You Turn It On?

By Chandan Shukla

Comments posted to this topic are about the item What is Delayed Durability in...

Which MAXDOP?

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Which MAXDOP?

Data Sovereignty in the Cloud

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Data Sovereignty in the Cloud

Visit the forum

Question of the Day

Which MAXDOP?

I have a SQL Server 2022 instance with this setting:

EXECUTE sp_configure 'max degree of parallelism', 4;
GO
I then run this:
SELECT ProductID, OrderQty, SUM(LineTotal) AS Total
FROM Sales.SalesOrderDetail
WHERE UnitPrice < $5.00
GROUP BY ProductID, OrderQty
ORDER BY ProductID, OrderQty
OPTION (MAXDOP 2);
GO
What is the maxdop for my query?

See possible answers