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

assign stored procedure output variable value to ssis variable in execute sql task

$
0
0

I have one procedure with 2 input and 1 output variables, executing this proc thru Execute Sql Task

Here i want to assign that output variable value to variable in execute sql task

For this i am writing sql command in execute sql task as below

Declare @ID INT

EXEC usp_AuditInsert ?, ?,?  OUTPUT

SELECT @ID AS LogID

but i am getting error as below

[Execute SQL Task] Error: Executing the query "Declare @ID INT

EXEC usp_AuditInsert ?, ?,@ID  OU..." failed with the following error: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.". Possible failure reasons: Problems with the query,"ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Can anyone suggest on this?





Viewing all articles
Browse latest Browse all 24688

Trending Articles



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