DD MMM YYYY hh:mm:ss.sss -> 01 DEC 2012 00:00:34.381

I want the above to be converted from flat file to DateTime in MSSQL using SSIS. What options do I have for this, I keep getting errors when I use the standard DT_DATE?

有帮助吗?

解决方案

Read about conversion of data types here ("Converting Between Strings and Date/Time Data Types"). It has a chart that shows what format your date needs to be in. Use string functions to make your date match one of these, then convert to the data type you want.

http://technet.microsoft.com/en-us/library/ms141036.aspx

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top