sql - 无法将变量值传递给 ssis 中的存储过程

标签 sql sql-server ssis etl sql-server-data-tools

执行SSIS包时,出现以下错误:

[OLE DB Source [83]] Error: The SQL command requires a parameter named "@Sales_person", which is not found in the parameter mapping.

[SSIS.Pipeline] Error: OLE DB Source failed the pre-execute phase and returned error code 0xC0207014.

下面是我的 OLE DB 源代码编辑器的屏幕截图 enter image description here

enter image description here

enter image description here

我确实在“设置查询参数”中看到“参数方向”选项卡,它是如何使用的?就我而言,我将使用 InputOutputInputOutput

最佳答案

问题出在映射上。请参阅下面的图像和源进行更正,您应该将其设置为:

Exec [dbo].[GetSales_Person_Data] @Sales_person = ?

enter image description here

Source - geek with blogs

关于sql - 无法将变量值传递给 ssis 中的存储过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43619211/

相关文章:

c# - 使用 C# 检索 SQL Server 父/子查询结果

c# - 在ssis脚本组件中添加第三方dll引用

sql-server-2008 - 新服务器上的子 SSIS 包出现随机 0x80004003 无效指针错误

c++ - 完全面向对象的 C++ SQL 包装器?

sql - 使用 group by 进行复杂 SQL 连接

php - 在sql数据库中的多个表中插入一个条目

c# - SqlDependency OnChange 未触发

postgresql - 值不在ssis的预期范围内……嗯?

使用 UNIX_TIMESTAMP 的 mySQL 查询返回 0 结果

mysql - 以编程方式删除重复行mysql