Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Need help calling a stored procedure from OLE DB Command Passing Parameters

$
0
0

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]
 -- 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;

    update sysdba.account
 set  ADDRESSID = @AddressId,
   SHIPPINGID = @ShippingId
 where ACCOUNTID = @EntityId
END
GO

In SSIS, I have an OLE DB Command, in which I am trying to call the stored procedure, but I keep getting a Failed to Parse SQL error when I go to the column mappings tab.  I am trying to call the stored procedure like this:

exec dbo.UpdateAccountAddressAndShippingIds ?, ?, ?

I have tried following examples I found on the web, but I keep getting the failed to parse sql error when I go to map the parameters.

Can someone please help?!


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>