what is the default transaction timeout for SQL Server on Linux and how can you adjust it?

Rod-4091 0 Reputation points
2024-08-21T12:12:03.5566667+00:00

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

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,670 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Zahid Butt 956 Reputation points
    2024-08-21T18:15:42.1033333+00:00
    0 comments No comments

  2. MikeyQiaoMSFT-0444 2,705 Reputation points
    2024-08-22T09:07:13.9466667+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.