Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.64 KB

File metadata and controls

53 lines (38 loc) · 1.64 KB
title setTimestamp Method to timestamp and calendar values
description setTimestamp Method (java.lang.String, java.sql.Timestamp, java.util.Calendar)
author dlevy-msft-sql
ms.author dlevy
ms.reviewer davidengel, machavan, sunilbs
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerCallableStatement.setTimestamp (java.lang.String, java.sql.Timestamp, java.util.Calendar))
apitype Assembly

setTimestamp Method (java.lang.String, java.sql.Timestamp, java.util.Calendar)

[!INCLUDEDriver_JDBC_Download]

Sets the designated parameter to the given timestamp and calendar values.

Syntax

  
public void setTimestamp(java.lang.String sCol,  
                         java.sql.Timestamp x,  
                         java.util.Calendar c)  

Parameters

sCol

A String that contains the parameter name.

x

A Timestamp object.

c

A Calendar object.

Exceptions

SQLServerException

Remarks

This setTimestamp method is specified by the setTimestamp method in the java.sql.CallableStatement interface.

See Also

setTimestamp Method (SQLServerCallableStatement)
SQLServerCallableStatement Members
SQLServerCallableStatement Class