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
Rows of filled jam jars on a farmhouse table, one hand twisting on a lid, one jar at a time.

Scalar Functions and Performance

September 2, 2011
Pinal Dave
SQL Performance
Compatibility Level, Execution Plan, SQL Function, SQL Server, SQL Server 2019

Scalar functions can hide row-by-row work in SQL Server; learn when inlining helps, how to inspect eligibility, and when a set-based rewrite wins.

Read More
SQL SERVER - Table Valued Functions - Day 26 of 35

SQL SERVER – Table Valued Functions – Day 26 of 35

August 26, 2011
Pinal Dave
SQL Tips and Tricks
Joes 2 Pros, SQL Function, SQL Scripts, SQL Server

Let us learn about table valued functions. Every day one winner from the United States will get Joes 2 Pros Volume 4.

Read More
Gouache painting of a long loaf sliced into even pieces on a cutting board, one slice set apart on a vermilion napkin.

AI_GENERATE_CHUNKS in SQL Server 2025: Splitting Long Text Into Pieces

August 16, 2011
Pinal Dave
AI
AI, SQL Function, SQL Scripts, SQL String

AI_GENERATE_CHUNKS cuts one long piece of text into smaller pieces inside a query. This post tests the preview function on SQL Server 2025, shows what its columns hold and how overlap works, and explains how chunk size changes the number of pieces.

Read More
Gouache painting: two wooden posts stand at opposite ends of a meadow

geometry STLength: A Path Is Longer Than Its Chord

August 11, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts, SQL Server

geometry STLength measures the segments of a line. The example contrasts that path length with the shortest distance between its endpoints, including a closed line.

Read More
A detached ceramic lid beside an empty pale cup and a blue cup holding a stone on sage cloth.

FOR XML XSINIL: Emit Missing Fields as Explicit Nil Elements

August 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server, SQL XML

FOR XML XSINIL can represent SQL NULL with an explicit element carrying the xsi:nil attribute. I compare that output with ordinary element omission. An empty string stays a separate input in both versions.

Read More
Two blank upright books stand behind a flat sage-green book topped by a small brass ring.

XQuery Node Order: Compare Source Document Positions

June 13, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

XQuery node order compares positions in an XML document, not their text. Source order, alphabetical order and a node compared with itself give different answers.

Read More
An open wooden case holding a terracotta tile beside blue and pale stones.

geometry STAsBinary: Carry the SRID Beside the WKB

June 12, 2011
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry STAsBinary exports a geometry as WKB, while reconstruction takes a separate spatial reference identifier. I carry that identifier beside the bytes. Supplying a different identifier creates a differently tagged value from the same exported coordinates.

Read More
Previous 1 … 42 43 44 45 46 47 48 … 92 Next
  • Books
  • Testimonials
  • Privacy Policy

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