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

NULL in Date column using to_date()

$
0
0

Hi Folks,

 

This is a bit strange issue. I have always used the conversion format to_Date to convert character string format to standard date format. This time we have a source file which has column BBKPF-BUDAT from SAP in the format yyyymmdd. When I try to convert and bring the data in to SQl Server 2008 table column it gives NULL values. The strange thing is that it never converts the date in to DD-MM-YYYY format.

 

Date format in the Source File Format is yyyy.mm.dd

 

to_date(to_char(Kuwait_source."BBKPF-BUDAT",'DD.MM.YYYY'),'DD.MM.YYYY').

 

I have tried to_char(to_date(Kuwait_source."BBKPF-BUDAT",'DD.MM.YYYY'),'DD.MM.YYYY') also but still it doesnt gives me the desired output.

 

I have also tried to convert the data in the CSV file using Text to Data  option in Excel 2010.

 

DS Version: 14.0.2.462

 

Any help would be really appreciated.

 

Regards

Arun Sasi


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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