Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 1.69 KB

File metadata and controls

57 lines (42 loc) · 1.69 KB
title setTimestamp Method (int, java.sql.Timestamp, java.util.Calendar) | 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
SQLServerPreparedStatement.setTimestamp (int, java.sql.Timestamp, java.util.Calendar))
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 10c93cbf-f831-4e00-8e37-ea728bf34b1e
author David-Engel
ms.author v-daenge

setTimestamp Method (int, java.sql.Timestamp, java.util.Calendar)

[!INCLUDEDriver_JDBC_Download]

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

Syntax

  
public final void setTimestamp(int n,  
                               java.sql.Timestamp x,  
                               java.util.Calendar cal)  

Parameters

n

An int that indicates the parameter number.

x

An Timestamp object.

cal

A Calendar object.

Exceptions

SQLServerException

Remarks

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

See Also

setTimestamp Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class