--- title: "getPropertyInfo 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.getPropertyInfo" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: b5eaad8a-31ef-44ac-af11-d5caa13ac3e2 author: David-Engel ms.author: v-daenge --- # getPropertyInfo Method (SQLServerDriver) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Used to discover the properties needed to connect to a database. ## Syntax ``` public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String Url, java.util.Properties Info) ``` #### Parameters *Url* A **String** value that contains the URL that is used to connect to the database. *Info* A list of property value pairs, null on first use. ## Return Value An array of DriverPropertyInfo objects. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This getPropertyInfo method is specified by the getPropertyInfo 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)