SqlCommand Cancel leaves server batch and transaction running after client timeout
Diagnosis goal Determine whether SQL Server stops a running batch and rolls back its transaction after the client cancels a Microsoft.Data.SqlClient command or the CommandTimeout expires. Constraints and uncertainty SqlCommand.Cancel() and CancellationToken send an attention signal to SQL Server rather than directly terminating the server process. The batch