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
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
A hand pressing the lid of a compartment lunchbox that will not close over a squashed sandwich.

The Native JSON Data Type in SQL Server 2025

February 17, 2014
Pinal Dave
SQL Tips and Tricks
JSON, SQL Datatype, SQL Server

Use the JSON data type in SQL Server 2025, reject invalid documents, read and change properties, and choose where relational columns fit.

Read More
A tray of seed potatoes in neat rows, a hand removing one spoiled potato into a red bowl

Reading a JSON Lines File Into a Table With OPENROWSET

October 22, 2013
Pinal Dave
SQL Tips and Tricks
ETL, File format, JSON, SQL Server

Load JSON Lines with OPENROWSET BULK, keep UTF-8 text intact, quarantine invalid objects, and insert validated typed rows.

Read More
Gouache painting of a wall of small wooden cubbyholes, each holding one object such as a spool, a cup or a stone, beside a thick folder stuffed with loose papers and tabs, with one cubby holding a vermilion spool.

Key-Value and Document Databases: When Each One Fits

October 17, 2013
Pinal Dave
SQL Tips and Tricks
Database, JSON, NoSQL, SQL Datatype

Key-Value and Document Databases are two NoSQL models. One finds a value by its key, the other stores a whole JSON document you can query by any field. This post shows when each one fits and builds both patterns in SQL Server 2025 with a key-value table and the json data type.

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

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