About 841,000 results
Open links in new tab
  1. Store JSON documents - SQL Server | Microsoft Learn

    Aug 20, 2024 · The simplest way to store JSON documents in SQL Server or Azure SQL Database is to create a two-column table that contains the ID of the document and the content of the document.

  2. Work with JSON data in SQL Server - SQL Server | Microsoft Learn

    Nov 22, 2024 · You can organize collections of your JSON documents in tables, establish relationships between them, combine strongly typed scalar columns stored in tables with flexible key/value pairs stored in JSON columns, and query both scalar and JSON values in one or more tables by using full Transact-SQL.

  3. Create table from json in sql - Stack Overflow

    May 22, 2020 · You don't need a separate table. You can query and index jsonb columns. postgresql.org/docs/current/functions-json.html. You can use jsonb_array_elements() to turn the array into rows and then use that as the source for a CREATE TABLE statement: values ('{ "log": [ "message": "Cute dino!", "commander": "Sam" }, "message": "Cute dino!",

  4. How to parse JSON column to a table with TSQL - Stack Overflow

    Mar 28, 2019 · I am trying to open up a JSON string and have each key to be its own column. The JSON column lives in a Metadata table with key and polymorphic id. I want to be able to parse every key into its own column with its corresponding value populated for each polymorphic id.

  5. Creating a Table With a JSON Column - Oracle Help Center

    You use SQL condition is json as a check constraint to ensure that data inserted into a column is (well-formed) JSON data. Oracle recommends that you always use an is_json check constraint when you create a column intended for JSON data. Example 4-1 and Example 4-2 illustrate this.

  6. Working With JSON in SQL - GeeksforGeeks

    Apr 2, 2025 · You can use SQL functions like JSON_VALUE(), JSON_QUERY(), and JSON_MODIFY() to extract, query, and modify JSON data stored in columns, enabling more robust and performant queries.

  7. How to Insert JSON into a Table in SQL Server - Database.Guide

    Nov 7, 2020 · If you have a JSON document that you need to insert into a table in a SQL Server database, the OPENJSON() function could be just what you need. OPENJSON() is a table-valued function that returns JSON in tabular format.

  8. Converting JSON to SQL Server CREATE TABLE Statements

    May 22, 2018 · /* This code takes a JSON input string and automatically generates SQL Server CREATE TABLE statements to make it easier to convert serialized data into a database schema.

  9. JSON in SQL Server: The Ultimate Guide - Database Star

    Dec 10, 2024 · Showing JSON Columns as Table Columns If you want to get JSON data from a table and show it in a table format using OPENJSON, you’ll need to use the CROSS APPLY feature to reference a table.

  10. Introduction to OPENJSON with Examples (SQL Server)

    Nov 4, 2020 · SQL Server has a table-valued function called OPENJSON() that creates a relational view of JSON data. When you call it, you pass a JSON document as an argument, and OPENJSON() then parses it and returns the JSON document’s objects and properties in a tabular format – as rows and columns. Here’s a simple example to demonstrate. Result:

  11. Some results have been removed
Refresh