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
SQL SERVER - Finding the Occurrence of Character in String

SQL SERVER – Finding the Occurrence of Character in String

August 16, 2010
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL String

A quick T-SQL method using LEN and REPLACE to count the occurrence of character or word in a string, written as a hint for TSQL Beginners Challenge 14.

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
A cable ferry crosses a calm river while a long line of cars waits on the near bank.

Monitoring Availability Group Health

August 9, 2010
Pinal Dave
SQL Tips and Tricks
AlwaysOn, DBA, SQL DMV, SQL High Availability, SQL Monitoring

Monitor availability group health through replica connection state, database synchronization, send and redo queues, and failover readiness checks.

Read More
Previous 1 … 424 425 426 427 428 429 430 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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