SQL Server's OpenJson function will let you dismantle JSON structures into relational tables, including tables with foreign/primary key relationships. As I noted in an earlier column, JSON is great ...
Native support for JSON in the upcoming SQL Server 2016 was buried among the many goodies announced earlier this month for the flagship RDBMS, but it's clearly an important feature for data developers ...
- Prefer OPENJSON ... WITH (...) so JSON is parsed once and typed once. - Prefer varchar(n) over varchar(max) for projected properties when practical. - Avoid calling ...
- use mirror metadata (_rid, _ts) to prove the document exists - build COALESCE chains across multiple possible source representations - aggregate without letting type-mismatch NULLs distort results - ...