--- title: "setLong 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.setLong" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 137416fe-a580-424e-be79-fe946eba9e6e author: David-Engel ms.author: v-daenge --- # setLong Method (SQLServerCallableStatement) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the designated parameter to the given **long** value. ## Syntax ``` public void setLong(java.lang.String sCol, long l) ``` #### Parameters *sCol* A **String** that contains the parameter name. *l* A **long** value. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This setLong method is specified by the setLong 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)