Hello:
I'm attempting to use the lookup task and i'm running into an issue about incompatible datatypes.
The table that i'm referencing in the lookup has a field named DateCreated, and it's DataType is DateTime.
But when I hook it up to the Lookup Task, the lookup task thinks it's a DB_Timestamp, so i get an incompatible data type error.
What can i do?
i'm not sure if this would resolve your issue, but have you tried using the data conversion component?|||Duane:
Thanks for your reply.
My problem is not with the dataflow, but with the Lookup Task misinterpreting the Data Type of one of the columns in my lookup table.
Instead of being DateTime as the column is set to, the the Lookup task thinks the column is a DB_Timestamp.
|||SamuelEe,
maybe i misunderstood you. however, the lookup transformation is a data flow component.
|||SamuelEe wrote:
Duane:
Thanks for your reply.
My problem is not with the dataflow, but with the Lookup Task misinterpreting the Data Type of one of the columns in my lookup table.
Instead of being DateTime as the column is set to, the the Lookup task thinks the column is a DB_Timestamp.
Duane's suggestion is still valid. Try changing the type of the column in the pipeline to DT_DBTIMESTAMP as well so that it can match with what the LOOKUP component has got.
The LOOKUP component is not misinterpreting anything. Datetime fields from database tables get interpreted as DT_DBTIMESTAMP in a SSIS data flow.
-Jamie
No comments:
Post a Comment