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
Temp Table and Table Variable execution differences.

SQL SERVER – Difference Temp Table and Table Variable – Effect of Transaction

December 28, 2009
Pinal Dave
SQL Performance
Best Practices, Database, SQL Scripts, SQL Transactions

Temp table versus table variable, part two: a transaction rollback undoes changes to a temp table, but a table variable keeps its values.

Read More
An unattended hay wagon stands in the middle of a narrow stone bridge while a line of cyclists waits behind it.

Following a Blocking Chain to the Head Blocker

November 27, 2009
Pinal Dave
SQL Performance
DBA, SQL DMV, SQL Lock, SQL Transactions

Follow SQL Server blocking_session_id through a blocking chain, identify the head blocker, and choose a safe ending for the wait.

Read More
Beach towels laid edge to edge on the sand, seen from above, one red towel overlapping its neighbor

Preventing Overlapping Date Ranges in a Table

October 31, 2009
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL DateTime, SQL Server, SQL Transactions, SQL Trigger

Detect overlapping date ranges with joins and window queries, use half-open endpoints, and enforce the rule with a multirow trigger.

Read More
A grey seal asleep across the only path to a cove while a person with a red paddle waits behind it

Finding Sleeping Sessions That Still Hold Locks

June 19, 2009
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Server, SQL Transactions

Find sleeping sessions with open transactions, inspect their locks and last batch, and identify the application owner before ending work.

Read More
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
Previous 1 … 11 12 13 14 15 16 17 Next
  • Books
  • Testimonials
  • Privacy Policy

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