Skip to content

Conversation

@roji
Copy link
Member

@roji roji commented Sep 10, 2025

Closes #36460

Description
Support for the new SQL Server JSON data type was temporarily disabled for rc.1 as support for it wasn't yet fully rolled out to Azure SQL Database. Support has since been rolled out fully, and so this PR enables that support in EF for rc.2.

Customer impact
This allows using the new SQL Server JSON data type when targeting Azure SQL Database (as opposed to on-premise SQL Server 2025). This is a main feature of EF 10, and the reenabling was planned.

How found
User-reported

Regression
No

Testing
Already exists, manually validated against Azure SQL Database:

Validation checks performed on Azure SQL Database
-- OPENJSON over json data type works:
SELECT * FROM OPENJSON(CAST('[{ "a": 8 }, { "a": 9 }]' AS JSON)) WITH ([Foo] INT '$.a');

-- modify works:
CREATE TABLE foo (bar JSON);
INSERT INTO foo (bar) VALUES ('{ "a": 8 }');
UPDATE foo SET bar.modify('$.a', 10);
SELECT * FROM foo;

-- JSON_VALUE with RETURNING:
SELECT JSON_VALUE(CAST('{ "a": 8 }' AS JSON), '$.a' RETURNING int);

Risk
Extremely low, extremely targeted enabling of an already-existing feature for Azure SQL Database only.

/cc @uc-msft @yorek

@roji roji requested a review from artl93 September 10, 2025 15:37
@roji roji requested a review from a team as a code owner September 10, 2025 15:38
@roji roji added the ask-mode label Sep 10, 2025
Copy link
Member

@artl93 artl93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RC2

@roji roji merged commit 25d9109 into dotnet:release/10.0 Sep 10, 2025
7 checks passed
@roji roji deleted the EnableJsonForAzure branch September 10, 2025 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable the JSON data type and JSON_VALUE() RETURNING clause for Azure SQL

3 participants