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

Execute SQL Task in Control Flow Vs OLEDB Source in data flow task for executing Stored Procedure

$
0
0

Hi,

I have a stored procedure that I need to get executed which I need to use it to create flat file. So, I went into DataFlow task and dragged OLEDB Source and selected connection and gave stored procedure name and Parameter declaration etc. When I clicked on 'Columns' in left pane, I am getting errors.

Error: The metadata could not be determined because statement

EXEC sp_executesql@sqlCmd,N'@incorrectFile smallint output',@incorrectFile=@incorrectFileOUTPUT;

in procedure 'uspName' contains dynamic SQL. COnsider Using WITH RESULT SETS clause to explicitly describe the result set.

After this statement in SP, there is lot of code written to get data.

This is a stored procedure with input parameters. How can I run this in data flow task and get result set

so that I can use it for my flat file destination.

Thank You

 


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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