Hi,
I have date and time stored in oracle and i want to load them in SQL server 2012.
The datatype in source (oracle) is decimal for storing date and time as below:
moddate decimal(10,0)
modtime decimal(10,0) --time is in seconds from midnight
moddate 20140703
modtime 47041
i want to load a concate of both in sql server in datetime format. I tried various approaches but it fails(give null) while running the job.
The output should be like this
modedatetime datetime2(2)
07/03/2014 13:04:01
The below syntax works fine in oracle
to_date(moddate, 'YYYYMMDD') + modtime/24/60/60, 'mm/dd/yyyy hh24:mi:ss') as MM
How to make it work in Dataservices?