--- title: "acceptsURL 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.acceptsURL" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: fc744566-7191-4b15-9f76-b4b8087fb14a author: David-Engel ms.author: v-daenge --- # acceptsURL Method (SQLServerDriver) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Checks if the given URL is valid. ## Syntax ``` public boolean acceptsURL(java.lang.String url) ``` #### Parameters *url* A **String** value containing the URL used to connect to the database. ## Return Value **true** if the given URL is valid. Otherwise, **false**. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This acceptsURL method is specified by the acceptsURL 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)