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

SSIS Script Component to convert DateTime format

$
0
0

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



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