I'm using BIDS to update some data to SQL Server 2008 R2.
My source is a varchar and destination table has this column VariantValue as a sql_variant datatype. So I have used a derived column transformation to create a unicode new column with this expression: (DT_WSTR,4000)(PNumber). Which means i'm converting a varchar into a unicode and inserting it into a sql_variant column
My slowly changing dimension connection manager is throwing this error:
Cannot map columns of different types.
Column 'PNumber' is of type 'System.String' and columnVariantValueis of type 'System.Object'
There are many restrictions for the Sql_Variant data types:
So i think that your row source is
Varchar(Max)so even if you convert it toIt will work.
Or you can use a SQL command as Source and CAST the column to
VARCHAR(4000)orNVARCHAR(4000)from it.Note: that when using
MAXlength, SSIS consider it as a blob dataDT_TEXTReferences