I'm trying to import some data from one database to another. Everything works fine except for the milliseconds are being rounded off to its nearest second.
In my SSIS package, I have a Recordset Destination which stores the result of a query into a global object variable. The data viewer shows that the date with all its time component (including milliseconds) are properly being displayed. This is inside a data flow task. After this, I've added a script task which takes the variable that stored the result in the Recordset Destination task. I've used OleDbDataAdapter
to get the read the rows from this variable to a locally defined DataTable
. When this is done the milliseconds in any of the DateTime
field gets rounded to second. Any clues why this is happening and how this can be fixed?
EDIT: Used a for each container task to go through all the rows from the recordset variable. Its still rounding the milliseconds to nearest second.
NOTE: I'm using SSIS 2008, .NET 3.5SP1. The Recordset Destination has DT_DBTIMESTAMP
data type of the date time fields.