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
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
SQL SERVER - Computed Column - PERSISTED and Performance

SQL SERVER – Computed Column – PERSISTED and Performance

August 3, 2010
Pinal Dave
SQL Performance
Computed Column, SQL Scripts, SQL Server

My computed column series in one list: PERSISTED versus non-persisted for storage and speed, and how an index on the column improves performance.

Read More
A muffin tin with one empty cup, while two muffins are squeezed together into the cup next to it.

Relational Division in T-SQL: Customers Who Bought Every Product

August 2, 2010
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts, SQL Server, SQL Sub Query

Solve relational division with counts and double NOT EXISTS, then handle duplicates, NULL values, empty requirements, and exact matching.

Read More
Previous 1 … 334 335 336 337 338 339 340 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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