microsoft / sql-server-samples

Azure Data SQL Samples - Official Microsoft GitHub Repository containing code samples for SQL Server, Azure SQL, Azure Synapse, and Azure SQL Edge
Other
10.09k stars 8.9k forks source link

Added rollback transaction before an exception is thrown #1346

Closed DanielFerrerCC closed 1 month ago

DanielFerrerCC commented 2 months ago

When the 10 reties fail with an exception, and the THROW is called, the transaction remains opened.

DanielFerrerCC commented 2 months ago

@microsoft-github-policy-service agree company="Code Crafters LLC"