Hi,
Please go through below links , may be helpful:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I can see on this page how to enable XA :-
https://learn.microsoft.com/en-us/sql/connect/jdbc/understanding-xa-transactions?view=sql-server-ver16
However I am curious about how to manage transaction timeouts with SQL Server on Linux. On Windows you can set the XA timeout by configuring MS DTC and the timeout (which defaults to 60 seconds) via component services. Is there a default XA timeout with SQL Server on Linux and if so what is it and can it be increased please?
Thanks
Rod
Hi,Rod-4091
SQL Server does not directly provide control over transaction timeouts. Transaction timeouts are generally considered at the application level. The MS DTC you mentioned is also invoked through .NET System.Transactions.Configuration.
MachineSettingsSection.MaxTimeout Property
How to configure the Microsoft Distributed Transaction Coordinator (MSDTC) on Linux
Here are some additional links for implementing a transaction timeout mechanism.
SqlCommand.CommandTimeout Property
Understanding timeout properties in the JDBC driver
TransactionManager.DefaultTimeout Property
Regards
Mikey Qiao
If you're satisfied with the answer, don't forget to "Accept it," as this will help others who have similar questions to yours.