| title | getSendTimeAsDatetime Method (SQLServerDataSource) |
|---|---|
| description | getSendTimeAsDatetime Method (SQLServerDataSource) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
[!INCLUDEDriver_JDBC_Download]
This method was added in [!INCLUDEssNoVersion] JDBC Driver 3.0.
Returns the setting of the sendTimeAsDatetime connection property.
public boolean getSendTimeAsDatetime();
true if java.sql.Time values will be sent to the server as a [!INCLUDEssNoVersion] datetime type. false if java.sql.Time values will be sent to the server as a [!INCLUDEssNoVersion] time type.
See Setting the Connection Properties for more information about the sendTimeAsDatetime connection property.
SQLServerDataSource.setSendTimeAsDatetime lets you programmatically set the sendTimeAsDatetime connection property.
For more information, see Configuring How java.sql.Time Values are Sent to the Server.