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
A walker on a hillside at dusk looking over scattered village lights, the nearest one glowing red below the path.

Finding the Nearest Store With the geography Type

August 17, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Index, SQL Server

Find the nearest store with SQL Server geography, validate coordinate order, apply a distance radius, and inspect spatial index use.

Read More
Two open brass pocket watches with plain faces on a felt mat, a hand turning one crown to match the other watch.

Synchronizing Data Between Two Databases

August 15, 2010
Pinal Dave
SQL Tips and Tricks
ETL, SQL Replication, SQL Server, SQL Transactions

Synchronizing data between two SQL Server databases requires a latency target, change source, conflict rule, and recovery plan before tool selection.

Read More
Gouache painting: on a floured board, one long strand of fresh pasta on the left is folded into a V with a doubled-back spike through its middle, overlapping itself

geometry MakeValid: Repair Can Change the Geometry Type

August 14, 2010
Pinal Dave
SQL Tips and Tricks
Spatial Database, SQL Function, SQL Scripts, SQL Server

geometry MakeValid returns a valid geometry from an invalid instance, but the result can change type. I keep the original beside the proposed repair. A validity flag alone does not describe everything that changed.

Read More
A closed walnut chest with a plain rectangular wooden bar and a short vermillion cord on the table.

Random Tokens in SQL Server: Generation, Storage and Expiry Checks

August 11, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server Encryption, SQL Server Security

Random tokens in SQL Server need more than a generated value. Their stored state must define expiry, revocation and whether consumption already occurred. A guarded disposable fixture makes the boundary conditions explicit.

Read More
A hand tying colored ribbons to the switches inside an open household fuse box

Documenting a Server You Just Inherited

August 9, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Documentation, SQL Server

Documenting a server you just inherited starts with identity, databases, files, jobs, access, alerts, and tested recovery ownership.

Read More
Gouache painting: six wooden fence posts stand in a straight row along a riverbank, equally spaced

GENERATE_SERIES: Make the Step Explicit

August 8, 2010
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Order By, SQL Server

GENERATE_SERIES returns numbers within a declared range. These read-only examples specify the step, preserve input types and order every returned series deliberately.

Read More
A loose heap of raked autumn leaves spilling beside an empty slatted leaf bin, a red rake against the wall.

Heap Tables: When a Table Without a Clustered Index Hurts

August 5, 2010
Pinal Dave
SQL Performance
Clustered Index, SQL Heap, SQL Index, SQL Server

Find heap tables, inspect forwarded records and empty-page behavior, and choose between a clustered index and a planned rebuild.

Read More
Previous 1 … 330 331 332 333 334 335 336 … 416 Next
  • Books
  • Testimonials
  • Privacy Policy

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