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
SQL SERVER - Upgrade Error - ALTER DATABASE Statement Not Allowed Within Multi-statement Transaction

SQL SERVER – Upgrade Error – ALTER DATABASE Statement Not Allowed Within Multi-statement Transaction

April 4, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Replication, SQL Scripts, SQL Transactions, SQL Upgrade, Starting SQL

A failed SQL Server 2014 SP2 left the service down with: ALTER DATABASE statement not allowed within Multi-statement Transaction. Here is how to fix it.

Read More
SQL SERVER - Error: 8509 - Import of Microsoft Distributed Transaction Coordinator (MS DTC) transaction failed: 0x8004d00e(XACT_E_NOTRANSACTION)

SQL SERVER – Error: 8509 – Import of Microsoft Distributed Transaction Coordinator (MS DTC) transaction failed: 0x8004d00e(XACT_E_NOTRANSACTION)

August 30, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Transactions

A client’s JDBC XA transactions failed with Error 8509: import of MS DTC transaction failed (XACT_E_NOTRANSACTION). Here is what we checked and how we fixed it.

Read More
Two separate folio covers are held beneath one shared press restraint.

SQL SERVER – How to Update Two Tables in One Statement?

June 6, 2017
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Transactions

One Statement normally updates one target table in SQL Server. I use a transaction when two changes must succeed together.

Read More
An open ledger on a dark workbench lit by a single red desk lamp

SQL SERVER – FIX : Error: 3456, Severity: 21 – Could not redo log record (xx:xx:xx), for transaction ID (x:xx), on page (x:xx), database ‘master’

May 31, 2017
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Transactions, Transaction Log

Could not redo log record in master, error 3456, and SQL Server would not start. How we rebuilt and recovered, and the backup that makes it simple.

Read More
One coat on a single hook by a door, with four wet coats heaped on the floor beneath

Triggers That Assume One Row: Fixing Them for Multi-Row Updates

February 1, 2017
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Server, SQL Transactions, SQL Trigger

Fix triggers for multi-row updates by joining inserted and deleted, testing complete audit coverage, and keeping transaction work small.

Read More
Two small cars nosing into the same single empty parking space on a cobbled street from opposite directions.

Upsert Patterns in SQL Server Without Race Conditions

August 11, 2016
Pinal Dave
SQL Tips and Tricks
Deadlock, SQL Lock, SQL Server, SQL Transactions

Compare upsert patterns under concurrent calls, protect missing-key ranges, test MERGE with HOLDLOCK, and keep unique keys as a guard.

Read More
A deckhand seen from behind swinging a mooring rope toward a bollard again after a throw fell short.

A Retry Loop in T-SQL for Deadlock Victims and Lock Timeouts

August 1, 2016
Pinal Dave
SQL Tips and Tricks
Deadlock, SQL Lock, SQL Server, SQL Transactions

Build a bounded retry loop for deadlock and lock-timeout errors, roll back each failed transaction, and keep diagnostics beside retries.

Read More
Previous 1 2 3 4 5 6 7 8 … 15 Next
  • Books
  • Testimonials
  • Privacy Policy

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