This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge Download JDBC driver

Sets the number of seconds that this SQLServerDataSource object will wait while trying to make a connection.

Syntax

public void setLoginTimeout(int loginTimeout)

Parameters

loginTimeout

An int value that represents the number of seconds to wait. Zero means that the timeout is the default system timeout, which is specified as 15 seconds by default.

Remarks

This setLoginTimeout method is specified by the setLoginTimeout method in the javax.sql.DataSource interface.

See Also

SQLServerDataSource Members
SQLServerDataSource Class