--- title: "setURL Method (SQLServerCallableStatement) | 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: - "SQLServerCallableStatement.setURL" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 3d83675e-74ca-49d9-8461-6326773c5c8c author: David-Engel ms.author: v-daenge --- # setURL Method (SQLServerCallableStatement) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the designated parameter to the given URL value. ## Syntax ``` public void setURL(java.lang.String sCol, java.net.URL u) ``` #### Parameters *sCol* A **String** that contains the name of the parameter. *u* A URL object. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This setURL method is specified by the setURL method in the java.sql.CallableStatement interface. ## See Also [SQLServerCallableStatement Members](../../../connect/jdbc/reference/sqlservercallablestatement-members.md) [SQLServerCallableStatement Class](../../../connect/jdbc/reference/sqlservercallablestatement-class.md)