Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

importing/converting date/time value from csv file

$
0
0

I have a csv file that I wish to import into an existing SQL table.

The destination column format is datetime2(0)

The source data is in the format yyyy-mm-dd hh:mm:ss where hh is in 24 hour format.

I have tried setting the source column type to dt_dbtimestamp and dt_dbtimestamp2 and both fail with conversion errors (potential loss of data). How can I configure the import wizard to convert this date time format successfully please?

Thanks

David Z


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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