SSIS Foreach 循环:将图像变量映射到哪种 SSIS 类型? [英] SSIS Foreach Loop: map image variable to which SSIS type?

查看:29
本文介绍了SSIS Foreach 循环:将图像变量映射到哪种 SSIS 类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 SSIS 2008 中使用 ForEach 循环容器循环遍历 ADO 记录集.记录集包含一列 IMAGE 数据类型,我将其映射到对象类型的变量.然后,我有一个执行 SQL 任务,用于从循环中插入数据,但我不知道我应该将前一个图像列映射到可用数据的哪种数据类型.有什么建议吗?

I'm looping over an ADO recordset using a ForEach Loop Container in SSIS 2008. The recordset contains a column of IMAGE data type, which I mapped to a variable of object type. Then, I have an Execute SQL task for inserting data from the loop, but I can't figure out to which data type of the available ones should I map the previous image column. Any suggestion?

推荐答案

您在执行 SQL 任务中使用什么类型的连接?如果它是 OLE DB,那么不幸的是,您无法传递 Image 类型.另一方面,如果您可以创建一个 ADO .Net 连接到您的数据库并在您的执行 SQL 任务中使用它,那么您将能够将图像类型映射到对象类型.下面的屏幕截图.

What type of connection are you using in your Execute SQL task? If its OLE DB then unfortunately there is no way you could pass the Image type. On the other hand if you can create an ADO .Net connection to your database and use it in your Execute SQL task then you would be able to map the image type to Object type. Screenshots below.

这篇关于SSIS Foreach 循环:将图像变量映射到哪种 SSIS 类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆