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