OLE DB获取SSIS数据流中的BlobColumn数据

发布于 2024-08-19 07:43:57 字数 271 浏览 9 评论 0原文

当我在 DataFlow 中使用 ADO.net 源读取 Blob 列并将其传递给脚本组件进行进一步验证时 - 需要脚本组件对每列进行进一步验证以生成主/子错误记录主(对于每行)和子(对于每个错误列)。这很好用。

由于我需要参数化我的源,因此我无法使用 ADO.net,而是需要使用支持参数的 OLEDB 源。当我使用此 OLEDB 源时,脚本组件无法识别 OLEDB 源传递的 BLOB 数据。它报告数据类型问题,即将非unicode 转换为unicode。

这怎么办呢。

问候

When I use ADO.net source in DataFlow to read Blob Column and pass it to Script Component to do further validations - need script compoment to do further validations on each column to generate master / child error records master (for each row) and child (for each error column). This works fine.

As I need to parameterize my source, I can't use ADO.net and instead need to use the OLEDB Source which supports parameters. When I use this OLEDB source, the script component doesnt recognise the BLOB data being passed by OLEDB source. It reports datatype problems i.e., convering nonunicode to unicode.

How can this be done.

Regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

难以启齿的温柔 2024-08-26 07:43:57

您能否确认您的源数据库是什么(SQL Server、Oracle 等)。

我在使用“Oracle OLEDB Provider for Oracle”数据源时遇到了同样的问题。提供程序似乎将每个 varcahr 转换为 nvarchar。我通过添加“数据转换”组件解决了这个问题,并在此处将所有 nvarchar 列显式转换为 varchar。

新列包含在该组件的输出中,因此您可以将它们链接到电子表格上的字段。

Can you confirm what your source database is (SQL Server, Oracle, etc).

I had the same problem using the 'Oracle OLEDB provider for Oracle' data source. The provider seems to convert every varcahr into an nvarchar. I solved this by adding a 'data conversion' component, and explicitly converting all nvarchar columns to varchar here.

The new columns are incuded in the output of this compnent, so you can link them to the fields on your spreadsheet.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文