--- title: "setTimestamp Method to timestamp value | 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.setTimestamp (java.lang.String, java.sql.Timestamp)" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: dc45b126-3196-47ff-956b-cbc897980ff8 author: MightyPen ms.author: genemi --- # setTimestamp Method (java.lang.String, java.sql.Timestamp) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Sets the designated parameter to the given timestamp value. ## Syntax ``` public void setTimestamp(java.lang.String sCol, java.sql.Timestamp t) ``` #### Parameters *sCol* A **String** that contains the parameter name. *t* A Timestamp object. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This setTimestamp method is specified by the setTimestamp method in the java.sql.CallableStatement interface. ## See Also [setTimestamp Method (SQLServerCallableStatement)](../../../connect/jdbc/reference/settimestamp-method-sqlservercallablestatement.md) [SQLServerCallableStatement Members](../../../connect/jdbc/reference/sqlservercallablestatement-members.md) [SQLServerCallableStatement Class](../../../connect/jdbc/reference/sqlservercallablestatement-class.md)