How to set a Timeout on Accelerate (Connect 2) Queries for SQL Server

If you'd like SS&E Connect to timeout in the case of long-running queries, add an appropriate timeout to your connection string in the Accelerate Configuration.

Note: When adding or changing the timeout length, remember to edit only the Child XML.

To do this:

  1. Navigate to Administration SIS Integration Accelerate Configuration.
  2. Find the
  3. Add to the very end ";queryTimeout=XXXX" where XXXX is the timeout length in seconds.

    For example, in the screenshots below, the Connect2 configuration of the Child XML is set with a ConnectionString timeout length of 30 minutes (1800 seconds).

    The Connect2 Configuration page showing a Child XML section displaying XML code with connector settings, database name, username, password, and a connection string. The connection string area appears highlighted near the query timeout value.

    Right before , we added queryTimeout=1800:

    The XML snippet showing a connection string line with most of the value redacted and showing a highlighted segment near the query timeout value.

  4. In addition to the queryTimeout parameter, you may also set a socketTimeout parameter (in milliseconds). If used, the socketTimeout should be in addition to the above queryTimeout, and it should be set to a value that is greater than the queryTimeout.

    The reason being is that while the queryTimeout parameter will indicate to SQL Server to kill the query on the database, the socketTimeout may just kill the connection while allowing the query to continue running. Therefore, we must set the query to timeout first.

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
How to Contact Support
There are many ways to reach out! Click the icon above for our support options.
Watermark Academy
Click the icon above to access the Watermark Academy for consultation, training, and implementation companion courses.
Customer Community
Can’t find the answer? Ask fellow users how they’re making the most of Watermark in our Community!