April 16, 2018 at 10:23 am
Hello,
I need a help from you. Could you please confirm is it possible to parse JSON file in SQL server 2014 version?
Thanks
Rajan. S
April 16, 2018 at 10:35 am
manavairajan - Monday, April 16, 2018 10:23 AMHello,I need a help from you. Could you please confirm is it possible to parse JSON file in SQL server 2014 version?
Thanks
Rajan. S
Almost all things are possible in SQL Server, given enough time and effort, but native support is available only from 2016 onwards.
SSIS can parse JSON files, with a bit of scripting. Or you could write CLRs to help you do it in T-SQL.
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
April 16, 2018 at 11:06 am
You could take a look at this for options on using JSON before SQL Server 2016.
https://www.red-gate.com/simple-talk/sql/t-sql-programming/consuming-json-strings-in-sql-server/
April 16, 2018 at 12:35 pm
Luis Cazares - Monday, April 16, 2018 11:06 AMYou could take a look at this for options on using JSON before SQL Server 2016.
https://www.red-gate.com/simple-talk/sql/t-sql-programming/consuming-json-strings-in-sql-server/
We are using a JSON parser written by Phil Factor on a SQL Server 2012 server. It works, but I did have to do a slight work-around to be successful with it. I had to remove all spaces on either side of the ":" to get it to parse the JSON strings we were provided.
April 16, 2018 at 12:39 pm
Chipping in (same as Lynn suggested) have a look here
😎
April 20, 2018 at 9:49 am
Lynn Pettis - Monday, April 16, 2018 12:35 PMLuis Cazares - Monday, April 16, 2018 11:06 AMYou could take a look at this for options on using JSON before SQL Server 2016.
https://www.red-gate.com/simple-talk/sql/t-sql-programming/consuming-json-strings-in-sql-server/We are using a JSON parser written by Phil Factor on a SQL Server 2012 server. It works, but I did have to do a slight work-around to be successful with it. I had to remove all spaces on either side of the ":" to get it to parse the JSON strings we were provided.
That's a good thing to know. Thank you for the note.
I haven't had to work with JSON and I hope to never have to do it (in SQL).
April 20, 2018 at 9:59 am
Luis Cazares - Friday, April 20, 2018 9:49 AMLynn Pettis - Monday, April 16, 2018 12:35 PMLuis Cazares - Monday, April 16, 2018 11:06 AMYou could take a look at this for options on using JSON before SQL Server 2016.
https://www.red-gate.com/simple-talk/sql/t-sql-programming/consuming-json-strings-in-sql-server/We are using a JSON parser written by Phil Factor on a SQL Server 2012 server. It works, but I did have to do a slight work-around to be successful with it. I had to remove all spaces on either side of the ":" to get it to parse the JSON strings we were provided.
That's a good thing to know. Thank you for the note.
I haven't had to work with JSON and I hope to never have to do it (in SQL).
Working with JSON in 2016 and newer is so much easier.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply