• ugh3012 (8/5/2013)


    I have a SP that does bunch of stuff. It ends with a select statement from a temp table. How do I invoke that SP and send the output to a Destination in Data Flow?

    If I understand your question, you're looking to take the results from the select at the end of the stored procedure and use it as the source in a data flow. To do this, set up the OLEDB data source using the proper connection manager. In the source editor, data access mode, select SQL command. For the SQL command text, invoke your stored procedure. When you check the columns in the editor, you should see the columns from the select at the end of your stored procedure.

    [Edit, follow-up] I apologize--I missed that the table at the end of the procedure was a temp table. The process I described works for a permanent table. I've not worked with a temp table as a source but the following references may be helpful:

    1. MSDN Discussion

    2. MSSQLTips Problem/Solution[/url]

    Neither address the exact scenario you describe but may point you in a helpful direction.