Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 2.08 KB

File metadata and controls

36 lines (28 loc) · 2.08 KB
title setObject Method (SQLServerPreparedStatement)
description setObject Method (SQLServerPreparedStatement)
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.setObject
apitype Assembly

setObject Method (SQLServerPreparedStatement)

[!INCLUDEDriver_JDBC_Download]

Sets the value of the designated parameter by using the given object.

Beginning with [!INCLUDEssNoVersion] JDBC Driver 3.0, the behavior of this method is modified by the sendTimeAsDatetime connection property (Setting the Connection Properties) and SQLServerDataSource.setSendTimeAsDatetime.

For more information, see Configuring How java.sql.Time Values are Sent to the Server.

Overload List

Name Description
setObject (int, java.lang.Object) Sets the value of the designated parameter by using the given object.
setObject (int, java.lang.Object, int) Sets the value of the designated parameter by using the given object and target type.
setObject (int, java.lang.Object, int, int) Sets the value of the designated parameter by using the given object, target type, and scale.

See Also

SQLServerPreparedStatement Members
SQLServerPreparedStatement Class