Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

decimal to datetime

$
0
0

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?


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>