LoginTimeout
- Last Updated: September 11, 2023
- 1 minute read
- DataDirect Connectors
- JDBC
- Microsoft SQL Server 6.0
- Documentation
Purpose
The amount of time, in seconds, that the driver waits for a connection to be established before timing out the connection request.
Valid values
0 | x
where:
- x
- is a number of seconds.
Behavior
If set to 0, the driver does not time out a connection request.
If set to x, the driver waits for the specified number of seconds before returning control to the application and throwing a timeout exception.
Notes
When MultiSubnetFailover is enabled, the value of the LoginTimeout property is 15 seconds by default. When LoginTimeout is set to 0 (zero), the driver will still timeout requests after 15 seconds. However, when the value of LoginTimeout is an integer greater than 0 (zero), the driver will timeout requests for the specified duration.
Data source method
public Integer getLoginTimeout()
public void setLoginTimeout(Integer)
Default
0
Data type
Int