A routine begins a transaction and never commits or rolls it back
What it finds
A routine that starts a transaction and neither commits nor rolls it back leaves it open for its caller, holding locks until someone ends it. SQL Server reports a mismatched transaction count when the procedure returns.
From the rule's source, transaction_not_committed.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/sql:transaction-not-committed" = "warning"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/sql:transaction-not-committed shows the same in the terminal. Found a false positive? Report it.