Reputation: 11
I want to load a table from a CSV file, I have a varchar
field type on the CSV but on my target table it is integer
.
I want to load with SSIS.
How should I proceed?
Upvotes: 0
Views: 333
Reputation: 3659
Use a Data Conversion Transformation on your Dataflow. And change your column from DT_STR to DT_I4.
Upvotes: 1
Reputation: 18061
Simply specify the column of your CSV source to be DT_I4
on the Advanced tab of your source.
You may want to add an error output for invalid data where this columns contains values that cannot be converted.
Upvotes: 1