Json in synapses rowset

Vineet S 950 Reputation points
2024-09-23T07:53:48.4566667+00:00

Hi, when trying below code in openrowset .... Unable to get in tabular format {

"ONE": "JJJJ",

"TWO": "HH",

"THREE": "JJKK",

"4": "HJJJJ",

"5": "UUUU",

"_6": "UUUU",

"_7": "dbJJJJ",

"_8": "4GGG",

"_9": "EE/",

"_ts": "WW"

}

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,935 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,740 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ganesh Gurram 945 Reputation points Microsoft Vendor
    2024-09-23T08:54:51.89+00:00

    @Vineet S - Thanks for the question and using MS Q&A platform.

    In additional to my response provided here: Openrowset

    You need to apply CROSS APPLY OPENJSON(jsonContent) to view in tabular format.

    For more details, refer to video here: Query all JSON formats in Azure Synapse Analytics | SQL Pool |

    Hope this helps. Do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.