SSIS错误中的函数(子字符串或用户定义函数)

SSIS错误中的函数(子字符串或用户定义函数),ssis,user-defined-functions,Ssis,User Defined Functions,我使用子字符串和用户定义函数来执行一些字符串操作。但是,在OldDB源查询中为这些列生成的数据类型是DT_NTEXT。目标列是DT_WSTR,它给出了错误信息 An error occurred while setting up a binding for the "col09" column. The binding status was "DT_NTEXT". The data flow column type is "DBBINDSTATUS_UNSUPPORTEDCONVERS

我使用子字符串和用户定义函数来执行一些字符串操作。但是,在OldDB源查询中为这些列生成的数据类型是DT_NTEXT。目标列是DT_WSTR,它给出了错误信息

    An error occurred while setting up a binding for the "col09" 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.
是否有任何方法可以使用查询中的函数并匹配数据类型

    select substring('here is my text', 0, 4) 'col1', 
dbo.processstring('hello world') 'col2' from table1

提前感谢。

进入源组件的高级属性,并将输出列的SSIS数据类型修改为DT_WSTR