datetime milliseconds with ado ms-sqlserver
Posted: 13.02.2019, 15:11
Hi,
in my database application I insert log data into ms sql-server database using ado protocol (ZeosLib 7.2.4 stable, Lazarus 1.8.4 Win 32 and Win64).
Log data contains a datetime timestamp. I encountered the problem, that the millisecond part of the timestamp data is lost at the insert. Only the datetime part down to seconds ist inserted.
Reading the documentation, I found a connection parameter DateTimeWriteFormat to be specified as TZConnection.property. But I could not find any information how to supply the format - it should be according to Delphi standard, but where find this specificaton?
I am also not sure if this parameter, if set correctly, will help to solve my problem.
Can anybody help here?
woec
in my database application I insert log data into ms sql-server database using ado protocol (ZeosLib 7.2.4 stable, Lazarus 1.8.4 Win 32 and Win64).
Log data contains a datetime timestamp. I encountered the problem, that the millisecond part of the timestamp data is lost at the insert. Only the datetime part down to seconds ist inserted.
Reading the documentation, I found a connection parameter DateTimeWriteFormat to be specified as TZConnection.property. But I could not find any information how to supply the format - it should be according to Delphi standard, but where find this specificaton?
I am also not sure if this parameter, if set correctly, will help to solve my problem.
Can anybody help here?
woec