DateTime values
Posted: Thu 15 Feb 2018 16:57
Hello,
I am using ODAC v. 9.7.26 on C++Builder 6.0 Professional edition.
I am facing a trouble on importing data from a MSSQL to Oracle on fields of DateTime data type.
I am querying the MSSQL table using a TAdoQuery component and filling up a VirtualTable to use as the DataSet parameter of the TOraLoader::LoadFromDataSet method.
The milliseconds portion of the DateTime values differ from the MSSQL source:

Is there any known issue on this matter ? (https://forums.embarcadero.com/thread.j ... &stqc=true )
The DateTime columns in the Oracle database are of TIMESTAMP(3) type.
I have checked and the values obtained from the MSSQL by the Ado query are equal to the ones which are shown on the image I have posted.
I thought it could be a wrong date format of the ftTimeStamp columns of the TOraLoader component, I have changed it to have the milliseconds included (yyyy-mm-dd hh:nn:ss.zzz) and it did not solve the problem.
It seems that the application is copying the milliseconds from the computer time where the application runs.
Thank you very much for any help.
Best regards.
Jayme Jeffman
I am using ODAC v. 9.7.26 on C++Builder 6.0 Professional edition.
I am facing a trouble on importing data from a MSSQL to Oracle on fields of DateTime data type.
I am querying the MSSQL table using a TAdoQuery component and filling up a VirtualTable to use as the DataSet parameter of the TOraLoader::LoadFromDataSet method.
The milliseconds portion of the DateTime values differ from the MSSQL source:

Is there any known issue on this matter ? (https://forums.embarcadero.com/thread.j ... &stqc=true )
The DateTime columns in the Oracle database are of TIMESTAMP(3) type.
I have checked and the values obtained from the MSSQL by the Ado query are equal to the ones which are shown on the image I have posted.
I thought it could be a wrong date format of the ftTimeStamp columns of the TOraLoader component, I have changed it to have the milliseconds included (yyyy-mm-dd hh:nn:ss.zzz) and it did not solve the problem.
It seems that the application is copying the milliseconds from the computer time where the application runs.
Thank you very much for any help.
Best regards.
Jayme Jeffman