Skip to content

Database.Guide

json

JSON_VALUE() Examples in SQL Server (T-SQL)

November 19, 2019July 9, 2018 by Ian

When using JSON with SQL Server, you can use the JSON_VALUE() function to return a scalar value from a JSON string.

To use this function, you provide two arguments; the JSON expression, and the property to extract.

Read more

Categories SQL, SQL Server Tags functions, json, mssql, t-sql

ISJSON() Examples in SQL Server (T-SQL)

December 26, 2023July 8, 2018 by Ian

When using SQL Server, you can use the ISJSON() function to test whether or not a string expression contains valid JSON.

If the expression contains valid JSON, ISJSON() returns 1, otherwise it returns 0.

From SQL Server 2022, we also have the option of testing for a specific JSON type.

Read more

Categories SQL, SQL Server Tags functions, json, mssql, t-sql

SQL Server FOR JSON PATH Examples (T-SQL)

November 19, 2019July 8, 2018 by Ian

When using SQL Server, you can use the FOR JSON clause in a query to format the results as JSON. When doing this, you must choose either the AUTO or the PATH option. This article contains examples of using the PATH option.

Read more

Categories SQL, SQL Server Tags functions, json, mssql, t-sql

SQL Server FOR JSON AUTO Examples (T-SQL)

November 19, 2019July 8, 2018 by Ian

In SQL Server you can use the FOR JSON clause in a query to format the results as JSON. When doing this, you must choose either the AUTO or the PATH option. This article contains examples of using the AUTO option.

Read more

Categories SQL, SQL Server Tags functions, json, mssql, t-sql
Newer posts
← Previous Page1 … Page17 Page18

About | Privacy Policy

© 2026 Database.Guide • All rights reserved