setSendTimeAsDatetime Method (SQLServerDataSource)
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
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho