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

Return value in a parameterized stored procedure not avail?

$
0
0

Hi, (I'm in the learning phase of SSIS) any and all help is greatly appreciated.

How do I setup a return value from a stored procedure and have access to it in my script?  I don't see the variable in my avail columns.  Also I get an error message when I run it.

I setup an oledb source to run a stored procedure(simple select) which took an input parameter and it works perfectly:

exec  [dbo].[sp_GetPaidItems_sddTest] ?

parameter mapping: @year  User::year

then I wanted to return an integer in the stored procedure: btw Stored procedure works fine

exec ? = [dbo].[sp_GetPaidItems_sddTest] ?

returnVal - int16

Error when executed:

[tarInvoice [1]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21. An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E21  Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".


shash


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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