May 2, 2012 at 3:21 pm
Hi, I need to query data from a MSSQL server 2008 table and parse it in JSON. Have any ideas.
Need to query any table.
Need to pass the query result to a JSON parser in classin ASP or PHP.
By no means, ASP.NET.
Thanks
Jorge
June 4, 2015 at 12:26 am
Well with SQL Server 2016 you can export SQL table rows into JSON string format. JSON in SQL will just work like XML with similar semantics.
Check this: Export SQL table to JSON string[/url]
MSDN BoL on JSON & SQL: https://msdn.microsoft.com/en-us/library/dn921882(v=sql.130).aspx
June 4, 2015 at 7:44 am
datelligence (5/2/2012)
Hi, I need to query data from a MSSQL server 2008 table and parse it in JSON. Have any ideas.Need to query any table.
Need to pass the query result to a JSON parser in classin ASP or PHP.
By no means, ASP.NET.
Thanks
Jorge
Note this article by Phil Factor:
https://www.simple-talk.com/sql/t-sql-programming/consuming-json-strings-in-sql-server/
-- Itzik Ben-Gan 2001
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply