Re:Announcing SQL Server on Linux
by johnlbevan2 on Monday March 07, 2016 @07:11PM
(#11242726)
MS SQL does support XML types / allow you to use XPath in your queries.
To my knowledge it doesn't do JSON; but its easy to convert between the two.
http://blog.sqlauthority.com/2012/04/27/sql-server-introduct...
Re:Announcing SQL Server on Linux
by intrasight on Monday March 07, 2016 @08:11PM
(#11242950)
SQL 2016 does JSON
https://blogs.msdn.microsoft.com/jocapc/2015/05/16/json-supp...
Re:Announcing SQL Server on Linux
by philliphaydon on Tuesday March 08, 2016 @03:56AM
(#11244190)
I wish people would stop saying this. The JSON support in SQL Server 2016 is far from being comparable to the JSON support in pgsql.
Well actually it "supports" JSON as NVARCHAR. There is no JSON type and no JSONB type that supports indexing like in Postgres.
Nice to know, they query syntax is, unfortunately only slightly nicer than the XML options... at least at first glance.
As the two other comments note, SQL Server 2016 will support JSON, however the extent of the support is significantly less compared to Postgresql.
This is unfortunate as I'd love to have better document-db style functionality in SQL Server.
2016 supports JSON.
Re:Announcing SQL Server on Linux
by philliphaydon on Tuesday March 08, 2016 @03:56AM
(#11244191)
It has terrible support.
Dumping a load of JSON into an RDBMS makes CJ Date cry
Can you store / query JSON-like data in SQL server? I'd like to be able to store a structured object and query a keypath.