When I run it I get the following error:
Error at Data Flow Task [SQL Server
Destination [164]]: The column
“SepticSystemType” can’t be inserted
because the conversion between types
DT_NTEXT and DT_WSTR is not supported.
But according to this diagram that cast is legal:
http://msdn.microsoft.com/en-us/library/ms141704.aspx
Am I missing something?
Here is a possible option. You could use
Data Conversion Transformationtask available in Data Flow Task to convert input from one data type to another. Following example shows how this can be done.Step-by-step process:
dbo.DataNTextanddbo.DataUnicodeas shown in screenshots #1 and #2.NTextis a OLE DB source task;Conversionis a Data Conversion Transformation task; andUnicodeis a OLE DB destination task.dbo.DataNText. Column mapping is done as shown in screenshot #3.Copy of. Change the data type toUnicode String [DT_WSTR]and provide a length255. These values are for this example to show how the conversion configuration is done.dbo.DataUnicode. Column mapping is done as shown in screenshot #5.This can also be achieved using
Derived Column Transformationtask.Hope that helps.
Screenshot #1:
Screenshot #2:
Screenshot #3:
Screenshot #4:
Screenshot #5:
Screenshot #6:
Screenshot #7: