Additional SQL Server features and topics not covered by specific categories
Sorry, my information was wrong.
Client ODBC System DSN driver : SQL Server
Server : SQL Server 2019.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Client : SQL Server Native Client 11.0
Server : SQL Server 2019
Date type data cannot be written.
But datetime2 type is OK.
Why?
Additional SQL Server features and topics not covered by specific categories
Sorry, my information was wrong.
Client ODBC System DSN driver : SQL Server
Server : SQL Server 2019.
Hi @太志 廣瀬 ,
> Date type data cannot be written.
Could you share us your script for analysis? What are the values of date that you want written?
Default string literal format for date type is YYYY-MM-DD. Such as 2021-05-13
Default string literal forma for datetime2 is YYYY-MM-DD hh:mm:ss[.fractional seconds]. Such as 2021-05-13 12:35:29.1234567
Please refer to MS document date (Transact-SQL) and datetime2 (Transact-SQL).
By the way, what is the error message that you got? Please also share us the error message.
If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.