문제

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