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 - Storing Variable Values in Temporary Array or Temporary List

SQL SERVER – Storing Variable Values in Temporary Array or Temporary List

October 27, 2012
Pinal Dave
SQL Tips and Tricks

SQL Server has no arrays, but simple needs do not call for clever tricks. I use a table variable as a temporary array or list, with a SQL Server 2012 example.

Read More
Gouache painting of three containers on a long table: a spice rack of identical plain jars in perfect rows with one vermilion lid, a tackle box with mixed compartments, and a loose heap of shells, stones and dried leaves.

Structured, Semi-Structured and Unstructured Data Explained

October 26, 2012
Pinal Dave
SQL Tips and Tricks
Database, JSON, SQL Data Storage, SQL Datatype

Structured, Semi-Structured and Unstructured Data differ in where the schema lives and how you query them. This post compares the three shapes and runs one query across a table, a json column and free text in SQL Server 2025.

Read More
Punch needle beside a continuous stitched row with its last loose loop withdrawn

Gapless Invoice Numbers That Restart Every Year

October 25, 2012
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Transactions

Finance hates a missing invoice number. A small counter table and one short transaction keep the numbers gapless and restart them each year.

Read More
Gouache painting of two disconnected brass couplers on a braided cable between file boxes, with a red test clip.

SQL Server Connection Errors: SQL in Sixty Seconds #030

October 24, 2012
Pinal Dave
SQL Video
SQL Connection, SQL Error Messages, SQL in Sixty Seconds, sqlcmd

SQL Server connection errors have a different message for each cause. The tests here trigger seven of them against a local SQL Server 2025 instance, show what the client says, what the ERRORLOG records, and how to find the port an instance listens on.

Read More
SQL SERVER - Order By Numeric Values Formatted as String

SQL SERVER – Order By Numeric Values Formatted as String

October 23, 2012
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL String

A column holds alphanumeric values that start with a number, and ORDER BY sorts them as text. Here is how to sort the rows by the Numeric part instead.

Read More
A roofer laying overlapping wooden shingles: one long continuous run, a bare gap, then a short second run.

Merging Overlapping Date Ranges Into Continuous Periods

October 22, 2012
Pinal Dave
SQL Tips and Tricks
Ranking Functions, SQL DateTime, SQL Scripts, SQL Server

Use running end dates when merging overlapping ranges, choose boundary rules, and return continuous periods without losing nested intervals.

Read More
Three wooden shoe lasts of different sizes on a cobbler's shelf, a leather upper tacked over the middle one.

Server Configuration as Code

October 21, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, DevOps, SQL Server Configuration

Configuration as code keeps SQL Server instance settings in reviewed scripts, with environment values, drift checks, and repeatable application.

Read More
Previous 1 … 514 515 516 517 518 519 520 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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