I am writing a set of data to a SQL Server 2008 table in SSIS (Visual Studio 2008). As I map my data set to a OLE DB destination I get a truncation error because the OLE DB destination columns have length 20. This happens for every column but I'll only show a sample of one column below.
This is the column as in the SQL table definition:
Column_name Type Length
FLAGVOEMPLOYEE nvarchar 40
This is the metadata (checked in the data path editor) of the column I am passing to the destination as input:
Name Data Type Length
FlagVoEmployee DT_WSTR 40
This is the column properties in Advanced Editor > Input and Output Properties > OLE DB Destination Input > External Columns:
Name DataType Length
FLAGVOEMPLOYEE Unicode string [DT_WSTR] 20
I tried:
- Manually changing the length attribute, but it will restore automatically back to 20
- Deleting the path and creating it again
- Deleting the OLE DB Destination and creating it again
- Changing Data access mode to normal or fast load
- Unmapping the column and remapping it
I am lost as I don't know how to change any other property that might help me avoid the truncation