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?