I am trying to get an SSIS package inherited from a previous colleague to execute. The package pulls from an Access database and then puts the data into an SQL database.
One of the fields, let's call it 'Recommendations' is of the type 'memo' in the Access database. The column in the SQL output database is of the type varchar(max).
Error: 0xC002F446 at Data Flow Task, OLE DB Destination [218]: An error occurred while setting up a binding for the "Recommendations" column. The binding status was "DT_NTEXT". The data flow column type is "DBBINDSTATUS_UNSUPPORTEDCONVERSION". The conversion from the OLE DB type of "DBTYPE_IUNKNOWN" to the destination column type of "DBTYPE_WVARCHAR" might not be supported by this provider.
What confused me further is that a different column of type memo, which is also processed as DT_NTEXT, and is also placed into a varchar(max) data type in the SQL db, does not throw an error message. I have tried numerous conversion object types but have yet to successfully execute the package.
I was able to reproduce this error by doing the following:
nvarchar(100)
ntext
with a length greater than100
This causes the destination column to overflow and throw the error that you stated in your problem:
So what I think is happening for you is that the
ntext
column has a value that exceedsnvarchar(max)
causing it to overflow.In the previous version in which you convert the column to
dt_wstr(510)
- this works because you are probably truncating the ntext value to a size that will fit in the destination column. If the values do indeed fit into that size, then go with that as the solution. If your source values can be greater, than change the destination column in SQL to something that will fit. This can bentext
, but that is being deprecated, so it would be recommended to change this tovarbinary(max)
.this issue is due to ' (apostrophe ) in the data. remove the record that has apostrophe example: community's instead type communitys