--- title: "getLoginTimeout Method (SQLServerDataSource) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual apiname: - "SQLServerDataSource.getLoginTimeout" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 316f067c-9e08-456a-af19-b80b0bbd4a5c author: David-Engel ms.author: v-daenge --- # getLoginTimeout Method (SQLServerDataSource) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Returns the number of seconds that this [SQLServerDataSource](../../../connect/jdbc/reference/sqlserverdatasource-class.md) object will wait while trying to make a connection. ## Syntax ``` public int getLoginTimeout() ``` ## Return Value An **int** value that represents the number of seconds to wait. ## Remarks If the application does not specify a timeout value explicitly, this method returns a default value of 15 seconds. This getLoginTimeout method is specified by the getLoginTimeout method in the javax.sql.DataSource interface. ## See Also [SQLServerDataSource Members](../../../connect/jdbc/reference/sqlserverdatasource-members.md) [SQLServerDataSource Class](../../../connect/jdbc/reference/sqlserverdatasource-class.md)