SqlConnection and TransactionScope Timeout

I have a TransactionScope (DTC, read message) with a timeout of 60 minutes. In TransactionScope, I opened a connection (I hope to sign up for a transaction), but after 30 seconds I get a timeout.

In machine.config, I changed system.transaction maxTimeout to 60 minutes.

Why does the timeout occur after 30 seconds?

0
source share
1 answer

A SqlCommand already has a CommandTimeout property, which by default is 30 seconds. Perhaps you are using it as part of your transaction.

+2
source

Source: https://habr.com/ru/post/1767636/


All Articles