SQL Task won't return a value

  • Hi,

    I have a SQL Task, running a query which EXEC a Proc. that proc returns a value: "

    EXEC database.[dbo].[usp_getID] @BatchlD = @BatchlD OUTPUT

    I want to get my BatchID back with the Result Set Tab, but I'm getting an error that:

    [Execute SQL Task] Error: An error occurred while assigning a value to variable "": "Unable to find column in the result set.

  • If you are using OLEDB Connection, add an output parameter and change "ResultSet" property as "none"

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply