--- title: "connect Method (SQLServerDriver) | 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: - "SQLServerDriver.connect" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 43813a4c-1cc7-4659-ba27-f1786f1371eb author: David-Engel ms.author: v-daenge --- # connect Method (SQLServerDriver) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Makes a connection to the database. ## Syntax ``` public java.sql.Connection connect(java.lang.String Url, java.util.Properties suppliedProperties) ``` #### Parameters *Url* A **String** value that contains the URL that is used to connect to the database. *suppliedProperties* A set of string value pairs used as connection arguments. ## Return Value A Connection object. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This connect method is specified by the connect method in the java.sql.Driver interface. ## See Also [SQLServerDriver Methods](../../../connect/jdbc/reference/sqlserverdriver-methods.md) [SQLServerDriver Members](../../../connect/jdbc/reference/sqlserverdriver-members.md) [SQLServerDriver Class](../../../connect/jdbc/reference/sqlserverdriver-class.md)