About 643,000 results
Open links in new tab
  1. sql - Convert select query results into Json - Stack Overflow

    Aug 11, 2018 · I want to execute a select query on a table and I need this result in a JSON format or in an excel sheet. I want to do this using query only and I'm using SQL Server 2014. Here is …

  2. Get Value From Json object contain table column using SQL Query

    22 I have a table Books with two columns Id, BookCategory in a SQL Server database, where Id is the primary key and BookCategory contains JSON object. This my table Books I'm trying to …

  3. Querying json key name in SQL Server - Stack Overflow

    Querying json key name in SQL Server Asked 8 years, 1 month ago Modified 7 years, 7 months ago Viewed 32k times

  4. sql server - How do you use JSON_QUERY with null json array …

    Mar 25, 2021 · JSON_query([json], '$[1].Guid') replace 1 with whichever array index you want (zero-based). I suspect you want JSON_VALUE not JSON_QUERY though

  5. How to use json column in the WHERE clause as a condition

    Aug 8, 2016 · The question is stated in the title and below is an example of the data insert into table A values('a','b', {'key':'value'}); And I would like to be able to select this row based on the …

  6. Accessing JSON Array in SQL Server 2016 using JSON_VALUE

    Jul 10, 2016 · I am stuck while accessing array inside json using newly introduced JSON_VALUE function. Please consider following code - IF EXISTS(SELECT 1 FROM …

  7. SQL Server - how to query JSON string which has numeric value as …

    Sep 17, 2019 · I have a table in the database that holds a JSON string in one of its columns. I need to query this string. The issue is that some of the key names in the JSON string are …

  8. How to produce JSON strings from SQL Server queries via TSQL?

    0 I use SELECT JSON_QUERY(( SELECT [current],target FROM YourTable FOR JSON PATH )) Works well with minimal effort. I generally convert the output to a …

  9. Extracting values from JSON text in SQL Server - Stack Overflow

    Extracting values from JSON text in SQL Server Asked 5 years, 2 months ago Modified 5 years, 2 months ago Viewed 21k times

  10. sql server - Retrieving and using the output from a "FOR JSON" …

    Oct 29, 2016 · A JSON is, in fact, a character string. What makes this character string to be a JSON is the combination of two things: You refer to it as a JSON (using the correct functions …