setSendTimeAsDatetime Method (SQLServerDataSource)

 

DownloadDownload JDBC Driver

This method was added in SQL Server JDBC Driver 3.0.

Modifies the setting of the sendTimeAsDatetime connection property.

  
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.

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.

SQLServerDataSource Members
SQLServerDataSource Class

Community Additions

ADD
Show: