Muokkaa

Jaa


setSendTimeAsDatetime Method (SQLServerDataSource)

Download JDBC driver

This method was added in SQL Server JDBC Driver 3.0.

Modifies the setting of the sendTimeAsDatetime connection property.

Syntax

  
public void setSendTimeAsDatetime(boolean sendTimeAsDateTime)  

Parameters

sendTimeAsDateTime

A Boolean value. When true, causes java.sql.Time values to be sent to the server as SQL Server datetime types. When false, causes java.sql.Time values to be sent to the server as SQL Server time types.

Remarks

SQLServerDataSource.getSendTimeAsDatetime returns the setting of the sendTimeAsDatetime connection property.

For more information on the sendTimeAsDatetime connection property, see Setting the Connection Properties.

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

See Also

SQLServerDataSource Members
SQLServerDataSource Class