Configuring SQL Server timeout
See original GitHub issueEnvironment
Knex version: 0.19.5 Database + version: SQL Server 2018 OS: Windows (AWS RDS)
Bug
This may not strictly be a bug and more of a bug/feature request hybrid (I’d lean towards the former).
When setting the connectionTimeout
option for SQL Server, it doesn’t seem to actually apply - i.e., the default is 15000ms
, and after setting the value to 30000
, it still times out at 15000
. Is changing the request timeout possible with SQL Server?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Configure the remote login timeout Server Configuration Option
To configure the remote login timeout option · In Object Explorer, right-click a server and select Properties. · Click the Advanced node. ·...
Read more >How to Increase the MS SQL Remote Query Timeout?
Connect to MS SQL server via SQL Management Studio. · In Object Explorer, right-click on the server name and then select Properties. ·...
Read more >Is it possible to set a timeout for a SQL query on Microsoft SQL ...
As far as I know, apart from setting the command or connection timeouts in the client, there is no way to change timeouts...
Read more >Remote Query Timeout Option – Common SQL Server ...
Use the remote query timeout option to specify how long, in seconds, a remote operation can take before Microsoft SQL Server times out....
Read more >How to increase the timeout for a data source with SQL Server ...
Configure the connection string to increase the connection time-out and define the pool size. For example, if the data source connection of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @elhigu
This is where the
connectionTimeout
option was set, as you pointed out in a past issue https://github.com/knex/knex/issues/2699However, this option didn’t take effect, as the default timeout of 15000ms was still being enforced (as stated in the error when knex killed the request at 15000ms).
For the benefit of future travelers, I believe this should be specified as follows. Note
connectTimeout
vs.connectionTimeout
.https://github.com/tediousjs/tedious/issues/778 https://tediousjs.github.io/tedious/api-connection.html#function_newConnection