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 - SQL Server Statistics Name and Index Creation

SQL SERVER – SQL Server Statistics Name and Index Creation

September 17, 2012
Pinal Dave
SQL Performance
SQL Error Messages, SQL Index, SQL Scripts, SQL Server, SQL Statistics

Guest author Sandip hit Msg 1913 while creating an index, because an index or statistics with that name already existed. A lesson on statistics name and index creation.

Read More
Gouache painting of beach pebbles in loose clusters, two similar round pebbles close together, one vermilion, and a jagged stone far away.

VECTOR_SEARCH in SQL Server 2025: Finding Similar Rows With a Vector Index

September 5, 2012
Pinal Dave
AI
AI, SQL Index, SQL Scripts

VECTOR_SEARCH returns the rows whose vectors sit closest to a vector you give it, and a vector index makes that search approximate and fast. This post builds a six-row test with hand-made numbers on SQL Server 2025, with no AI model, and lists the limits the test showed.

Read More
Two halves of a snap fastener join as one connection despite being presented from opposite sides

Unique Pairs in Either Order: Blocking A-B When B-A Exists

August 20, 2012
Pinal Dave
SQL Tips and Tricks
Computed Column, Duplicate Records, SQL Constraint and Keys, SQL Index

A plain unique index treats (1, 2) and (2, 1) as different rows. Two computed columns and one index fix that, and I test the awkward cases.

Read More
A cloakroom rail of identical dark coats, each hanger carrying a small tag in a different colour.

What Is a Primary Key, and What Happens Without One?

August 14, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Index, SQL Server

A primary key is the promise that every row can be told apart. Why NULL is refused, what a table without one actually costs you, how it differs from a unique constraint, and when to choose a natural key over a made up one.

Read More
A nutcracker rests beside one walnut kernel and a much larger collection of its cracked shell pieces

Checking XML Index Size Against the Table It Belongs To

August 10, 2012
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL DMV, SQL Index, SQL XML

An XML index can outweigh the table it serves. Here is how I measure each XML structure next to the base table, and what to test before dropping one.

Read More
A carpet stretcher pulls ripples flat while the carpet remains uncut and keeps its existing edges

ALTER TABLE REBUILD: Fixing a Heap Without a Clustered Index

August 8, 2012
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Heap, SQL Index, SQL Table Operation

A heap with widening rows collects forwarded records. Here is how to measure them, fix them and know when the fix will not last.

Read More
SQL SERVER - Observation of Top with Index and Order of Resultset

SQL SERVER – Observation of Top with Index and Order of Resultset

July 23, 2012
Pinal Dave
SQL Tips and Tricks
SQL Index

Adding an index can change which rows TOP returns when there is no ORDER BY. I share three real cases where the order of resultset was blamed on the wrong thing.

Read More
Previous 1 … 29 30 31 32 33 34 35 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

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