<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Long Running Transactions on SQL Server Scripts</title><link>https://www.sqlserver70.com/tags/long-running-transactions/</link><description>Recent content in Long Running Transactions on SQL Server Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>SQLServer70.com</copyright><lastBuildDate>Sun, 02 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.sqlserver70.com/tags/long-running-transactions/index.xml" rel="self" type="application/rss+xml"/><item><title>Age Open Transactions with sys.dm_tran_active_transactions</title><link>https://www.sqlserver70.com/post/long-open-transactions-dm-tran-active-transactions/</link><pubDate>Sun, 02 Aug 2026 00:00:00 +0000</pubDate><guid>https://www.sqlserver70.com/post/long-open-transactions-dm-tran-active-transactions/</guid><description>
&lt;p&gt;A transaction that never commits keeps every log record written after it pinned in place, no matter how much work piles up behind it. &lt;code&gt;sys.dm_tran_active_transactions&lt;/code&gt; lists every transaction currently open on the instance, but on its own it only shows a transaction ID and a start time — pairing it with &lt;code&gt;sys.dm_tran_session_transactions&lt;/code&gt; and &lt;code&gt;sys.dm_exec_sessions&lt;/code&gt; turns that anonymous row into a specific session, login, and elapsed duration worth investigating.&lt;/p&gt;
&lt;script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1012089347386563"
crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-1012089347386563"
data-ad-slot="8593449130"&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;h2 id="purpose-and-overview"&gt;Purpose and Overview&lt;/h2&gt;
&lt;p&gt;The transaction log can only truncate up to the oldest point still needed for recovery, and an open transaction — no matter how small the actual data change behind it — holds that point fixed wherever it began. A transaction log backup running on schedule and a &lt;code&gt;CHECKPOINT&lt;/code&gt; completing normally free nothing if a session opened a transaction ten minutes ago and hasn't committed or rolled back since. The log keeps growing, autogrow events start firing, and the eventual full-log error traces back to a single session that most routine monitoring never surfaces directly.&lt;/p&gt;</description></item></channel></rss>