需要帮助从OLE DB命令传递参数调用存储过程 [英] Need help calling a stored procedure from OLE DB Command Passing Parameters
本文介绍了需要帮助从OLE DB命令传递参数调用存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要帮助从SSIS中的OLE DB命令调用存储过程。我创建了一个这样的存储过程:
I need help calling a stored procedure from an OLE DB Command in SSIS. I have created a stored procedure like this:
CREATE PROCEDURE [dbo]。[UpdateAccountAddressAndShippingIds]
- 在这里添加存储过程的参数
@AddressId nvarchar(12),
@ShippingId nvarchar(12),
@EntityId nvarchar(12)
AS
BEGIN
- 添加SET NOCOUNT ON以防止额外的结果集来自
- - 干扰SELECT语句。
SET NOCOUNT ON;
- 在这里添加存储过程的参数
@AddressId nvarchar(12),
@ShippingId nvarchar(12),
@EntityId nvarchar(12)
AS
BEGIN
- 添加SET NOCOUNT ON以防止额外的结果集来自
- - 干扰SELECT语句。
SET NOCOUNT ON;
CREATE PROCEDURE [dbo].[UpdateAccountAddressAndShippingIds]
-- Add the parameters for the stored procedure here
@AddressId nvarchar(12),
@ShippingId nvarchar(12),
@EntityId nvarchar(12)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Add the parameters for the stored procedure here
@AddressId nvarchar(12),
@ShippingId nvarchar(12),
@EntityId nvarchar(12)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
推荐答案
吉姆,
- 您是否需要为SSIS数据流管道中的每一行更新 sysdba.account表?
- 或者您只需要通过在控制流上调用SSIS执行SQL任务来执行一次操作?
这篇关于需要帮助从OLE DB命令传递参数调用存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文