Quantcast
Viewing all articles
Browse latest Browse all 24688

SSIS Script Component to convert DateTime format

Hi,

 Can you please help me with the C# code  to convert DATETIMESTAMP in the format YYYY-DD-MM HH:MM:SS.FFFFFF  to YYYY-DD-MM HH:MM:SS.FFFFF. The code must convert the scale value (fraction second) from 6 to 5. I would like to achieve this in SSIS script component (transformation). The input field is of DATETIMESTAMP2(6) data type and once the data is transformed to scale value 5 ,it will be inserted into a table with data type DATETIMESTAMP2(5).

Note: I don't want to do this in derived column.


Viewing all articles
Browse latest Browse all 24688

Trending Articles