我使用了Substring和UserDefined函数来执行一些字符串操作。但是,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
提前致谢。
答案 0 :(得分:0)
进入Source组件的高级属性,并将输出列的SSIS数据类型修改为DT_WSTR。