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
Two forks, one red, pressing into the last slice of pie at the same moment

Preventing Overbooking When Two Sessions Grab the Last Seat

June 9, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Lock, SQL Server, SQL Transactions, Transaction Isolation

Learn preventing overbooking through a last-seat race, an atomic update, update locks, and a database constraint that rejects oversold inventory.

Read More
Plums on a canvas sheet under a plum tree, with a few that rolled off its edge into the long grass.

Errors TRY CATCH Cannot Catch: Compile, Name and Severity Errors

June 8, 2009
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Stored Procedure, SQL Transactions

Learn which errors TRY CATCH cannot catch, test execution scopes safely, and pair transaction cleanup with caller timeout handling.

Read More
93538 Same TransactionID.

SQL SERVER – Interesting Observation of DMV of Active Transactions and DMV of Current Transactions

April 11, 2009
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL System Table, SQL Transactions

sys.dm_tran_active_transactions and sys.dm_tran_current_transaction look alike, but one lists active transactions for the instance, the other only your session.

Read More
A planting dibber continues a row of holes beyond a bare rocky patch in a garden bed.

Updating a Large Table in Batches With a Moving Key Range

December 11, 2008
Pinal Dave
SQL Performance
Batch, Clustered Index, SQL Transactions, Transaction Log

Walk the clustered key a slice at a time, log each batch, and learn why stopping at the first empty batch quietly leaves rows behind.

Read More
A pottery dispatch gate stays closed while an intact vessel waits on a separate inspection bench.

Service Broker Queue: Diagnose a Disabled Receiver

November 29, 2008
Pinal Dave
SQL Tips and Tricks
Service Broker, SQL Error Messages, SQL Transactions

A disabled Service Broker receiver needs diagnosis before recovery. Read queue flags alongside application evidence, distinguish state from cause and check receiving, enqueueing, activation and poison-message handling separately.

Read More
SQL SERVER - Transaction and Local Variables - Swap Variables - Update All At Once Concept

SQL SERVER – Transaction and Local Variables – Swap Variables – Update All At Once Concept

October 20, 2008
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Security, SQL Transactions

Two ideas with examples: transactions have no effect on local variables, and an UPDATE applies all its changes at once, which lets you Swap Variables in one go.

Read More
SQL SERVER - Detailed Explanation of Transaction Lock, Lock Type, Avoid Locks

SQL SERVER – Detailed Explanation of Transaction Lock, Lock Type, Avoid Locks

August 18, 2008
Pinal Dave
SQL Performance
SQL Error Messages, SQL Scripts, SQL Server Security, SQL Transactions

How do you find which table has a transaction lock and what lock type it is? Imran Mohammed explains it for SQL Server 2000 and 2005, and how to avoid locks.

Read More
Previous 1 … 10 11 12 13 14 15 Next
  • Books
  • Testimonials
  • Privacy Policy

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