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

Execute Stored Procedure using Execute Sql Task

$
0
0

when i am executing SP which has following  execute script in SSIS using Execute SQL task I am getting the error "Executing the query "Exec Windows.[uspInsertImportEventLog] ?, ?output" failed with the following error: "Must declare the scalar variable "@P2output"

DECLARE @RC int
DECLARE @ComputerName GenericName
DECLARE @ImportEventLogID int

-- TODO: Set parameter values here.

EXECUTE @RC = [PrinterInventory].[Windows].[uspInsertImportEventLog] 
   @ComputerName
  ,@ImportEventLogID OUTPUT
GO

I have also attached the image which i am doing in SSIS.

Thanks for your 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>