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

Stored Procedure with Result Set and OUTPUT parameters in 2005

$
0
0

Hi, I've got a Store Procedure that returns a result set that I need to use in a data flow but that also returns a couple of OUTPUT parameters, in this case the Start and End Dates that the Proc used to obtain the result set.  The Start and End Dates are supposed to be used as part of the CSV file name that it the Output of the Data Flow.

My problem is that I want to both Update some Variables with the OUTPUT parameters and consume the Result Set in the Data Flow.  My attempts to use an OLE DB Command in the data flow have failed to Update the Variables (regardless of the connection type used).  I have tried many combinations and although I could swear I had it working for a brief moment I have not been able to get those OUTPUT parameters to Update the variables.   Changing the datetype of the OUT params from DateTime to Varchar did not work eitehr.

I have only been able to successfully Map to OUTPUT parameters in an EXEC SQL Task in the Control Flow.  However, when I do this I do not know how to pass the Result Set (possibly as an Object) to the Control flow for further processing.

Seems this should be simple to do.  Does anyone have an example or suggestion to do this while keeping things simple and elegant.

Thanks

...Ray


...Ray

Viewing all articles
Browse latest Browse all 24688

Trending Articles



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