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
Gouache painting of two storehouses on a canal joined by a plank bridge with a red handcart crossing

How to Identify Cross-Database Transactions in SQL Server

April 22, 2015
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts, SQL Server, SQL Transactions

To find cross-database transactions, search the code for references to other databases, watch a live transaction with a DMV, or read special records in the transaction log. This post tests all three on two demo databases. It also shows why a popular log script flags a brand new database.

Read More
Log Execution Plan SQL Server.

SQL SERVER – Knowing Nested Transactions Behavior with SQL Server

March 25, 2015
Pinal Dave
SQL Tips and Tricks
SQL Transactions

Does SQL Server start a new transaction for every BEGIN TRAN inside another? I show nested transactions behavior with a simple demo for a reader.

Read More
Gouache painting: a wooden country mailbox on a post at dawn with its vermilion flag raised, a stack of unsent envelopes waiting on a bench beside it, empty open fields stretching to the horizon behind

Delayed Transaction Durability Explained: SQL in Sixty Seconds #074

September 10, 2014
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Performance, SQL Transactions, Transaction Log

Delayed transaction durability lets a commit return before its log record reaches the disk. This post explains the idea and the three settings, then measures 10,000 small transactions on SQL Server 2025 and shows the one risk with a log write count. It ends with a simple rule for using it safely.

Read More
Gouache painting: a small shop counter where a wrapped paper parcel has already been slid across to the far side, while a closed ledger and a resting pen wait on the near side; the parcel's wax seal is vermilion

Example of Delayed Durability: How Much Faster Are Commits?

September 8, 2014
Pinal Dave
SQL Performance
SQL Performance, SQL Scripts, SQL Transactions, Transaction Log

This example of delayed durability runs 50,000 small transactions on SQL Server 2025 four ways and compares time and log writes. It shows what the database setting and the commit option change, and what you risk.

Read More
Dovecote entrances with a fitted collar narrowing one opening

Block Predicates: Stopping Writes Into Another Tenant’s Rows

August 3, 2014
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Server Security, SQL Transactions

A filter predicate hides rows but does not stop a bad write. Here is how block predicates close that gap, with a demo you can run.

Read More
An assembled sausage stuffer performs one focused operation beside loose mixing utensils

Natively Compiled Procedures: ATOMIC Blocks and T-SQL Limits

June 25, 2014
Pinal Dave
SQL Tips and Tricks
In-Memory OLTP, SQL Stored Procedure, SQL Transactions

Native procedures check every statement when you create them. Build a tiny one and see which habits it will not accept.

Read More
A chair caster replacement keeps sound wheels while replacing a worn wheel

Syncing a Lookup Table Without MERGE: Insert, Update, Delete

May 20, 2014
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Table Operation, SQL Transactions

Three plain statements can do the job of MERGE, and each one gives you its own row count. Here is how to build it, test it and trust it.

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

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