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 combined glass-cutting tool beside separate scoring and breaking tools

MERGE Performance for Large Upserts: UPDATE Then INSERT Instead

December 21, 2012
Pinal Dave
SQL Performance
SQL Performance, SQL Scripts, SQL Server

Is MERGE really slow, or did the rewrite just run on a quiet night? Here is a fair test you can run yourself.

Read More
A knitted cardigan buttoned neatly, a hand at the hem showing every button is one hole off.

Writing T-SQL With an AI Assistant: What to Check Before You Run It

December 17, 2012
Pinal Dave
SQL Tips and Tricks
AI, Best Practices, SQL Scripts, SQL Server

Review T-SQL from an AI assistant for real columns, safe writes, index access, date boundaries, isolation, and rollback tests.

Read More
A hand holding a bunch of grass stems by a campfire, one short stem with a red tip just drawn out

Picking Random Winners Fairly With NEWID and CRYPT_GEN_RANDOM

December 14, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Random, SQL Server, SQL Transactions

Pick random winners with NEWID or cryptographic randomness, handle weights and unique entrants, and save a draw with its seed and timestamp.

Read More
A ringing brass alarm clock on a bedside table beside a neatly made, empty bed and untouched slippers.

SQL Server Agent Basics

December 10, 2012
Pinal Dave
SQL Tips and Tricks
DBA, SQL Scripts, SQL Server, SQL Server Agent

SQL Server Agent basics covers jobs, steps, schedules, proxies, and history so a first useful job runs with a clear owner and failure path.

Read More
A row of wooden toy animals with the repeats set aside in a basket below.

Removing Repeated Characters From a String With GENERATE_SERIES

December 8, 2012
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Server, SQL Server 2022, SQL String

Remove repeated characters with GENERATE_SERIES, ROW_NUMBER, and ordered STRING_AGG, then benchmark a SQL Server 2019 fallback.

Read More
A wall key rack with five keys, two empty hooks and one hook tied with a red ribbon

A Calendar Table With Holidays for Date Math

December 6, 2012
Pinal Dave
SQL Tips and Tricks
SQL DateTime, SQL Scripts, SQL Server

Build a calendar table with weekdays, fiscal months, and American holiday flags, then count working days and find useful date boundaries.

Read More
SQL SERVER - Find Referenced or Referencing Object in SQL Server using sys.sql_expression_dependencies

SQL SERVER – Find Referenced or Referencing Object in SQL Server using sys.sql_expression_dependencies

December 2, 2012
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL Utility

Which tables does a procedure use, and which procedures use a table? sys.sql_expression_dependencies answers both, with referenced and referencing objects.

Read More
Previous 1 … 319 320 321 322 323 324 325 … 455 Next
  • Books
  • Testimonials
  • Privacy Policy

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