Skip to main content

Posts

Showing posts with the label OPENJSON SQL

customerjson

  Insert multiple level JSON data into SQL Server 2016  - Now Native  JSON support in SQL Server 2016  and it provides you some functions to read and parse your JSON object to table format. 1.        The  OPENJSON   ()   table value function transforms JSON objects into one or many rows. It  will not execute any command. It just returns a table row if JSON text is properly formatted. OPENJSON function will also work with JSON arrays and this function can also open nested/hierarchical JSON objects.  OPENJSON will just return a set of rows instead of a single row. 2.        The  JSON_Value   () is a scalar function used to returns a value from JSON on the specified path. There are some specific examples for OPENJSON read nested JSON