Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.44 KB

File metadata and controls

48 lines (35 loc) · 1.44 KB
title setTimestamp Method (int, java.sql.Timestamp)
description setTimestamp Method (int, java.sql.Timestamp)
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 SQLServerPreparedStatement.setTimestamp (int, java.sql.Timestamp)
apitype Assembly

setTimestamp Method (int, java.sql.Timestamp)

[!INCLUDEDriver_JDBC_Download]

Sets the designated parameter to the given timestamp value.

Syntax

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

Parameters

n

An int that indicates the parameter number.

x

A Timestamp 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