This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL SERVER - Getting Started and Creating JSON Using SQL Server 2016 - JavaScript Object Notation

SQL SERVER – Getting Started and Creating JSON Using SQL Server 2016 – JavaScript Object Notation

June 29, 2015
Pinal Dave
SQL Tips and Tricks
JSON, SQL Scripts, SQL Server

SQL Server 2016 adds JSON support. Here is a quick look at what JSON (JavaScript Object Notation) is and how to create your first JSON document with a query.

Read More
Gouache painting of nested wooden boxes, opened one inside another, the smallest holding a single vermilion bead.

JSON_CONTAINS in SQL Server 2025: Searching Inside JSON Arrays

August 31, 2014
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL Scripts

JSON_CONTAINS checks whether a JSON document holds a value at a path, including inside an array. This post tests it on SQL Server 2025: the json data type it needs, numbers versus text, case, NULL results and the older OPENJSON way.

Read More
Bracelet with attachable moon, gem, and leaf ornaments beside a fixed cuff

JSON or Real Columns: Deciding Where Attributes Live

August 23, 2014
Pinal Dave
SQL Tips and Tricks
Computed Column, JSON, Normalization

Putting everything in a JSON column is tempting. Here is what it costs in reads, type checks and null handling, and when to promote a property.

Read More
Matching cultivator bars hold three teeth and two teeth, with one mounting position empty

Casting JSON Arrays to the vector Type for Embeddings

June 2, 2014
Pinal Dave
SQL Tips and Tricks
JSON, SQL Datatype, SQL Server

A cast checks the count of numbers, not the model they came from. Here is a simple staging pattern that loads good rows and reports the rest.

Read More
An open bento box with neat compartments, one holding a row of small rice balls, a red plum on the rice.

JSON_OBJECT and JSON_ARRAY: Building JSON in SQL Server 2022

March 30, 2014
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL NULL, SQL Server, SQL Server 2022

Build JSON_OBJECT and JSON_ARRAY values in SQL Server 2022, control null handling, nest arrays, and compare rowset and aggregate output.

Read More
A split pomegranate on a garden table, a hand lifting out one chamber full of red seeds

Querying Nested JSON Arrays With OPENJSON

February 19, 2014
Pinal Dave
SQL Tips and Tricks
JSON, SQL Function, SQL Scripts, SQL Server

Query nested JSON arrays with OPENJSON, preserve element positions, pass inner arrays with AS JSON, and handle missing or strict paths.

Read More
Rows of closed paint tins, each lid dabbed with its color, a hand reaching for the tin with the red dab

Indexing JSON Properties With Computed Columns

February 18, 2014
Pinal Dave
SQL Performance
Computed Column, JSON, SQL Index, SQL Server

Improve indexing JSON properties with typed computed columns, matching paths, required SET options, and plan checks on your workload.

Read More
Previous 1 2 3 4 5 6 7 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com