1

I'm using a procedure that uses a table variable to fetch relevant data from my DB, and then returns whatever is stored in that table variable to my data flow.

My OLE DB Source is only designed to run the SQL command EXEC FetchData_prc.

It shows the required columns in the Source Editor, and it also lets me do mapping, preview and all of that.

YET, when running the package, it throws the error: [OLE DB Source [1]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.

1
  • Can you add any code from the proc? I'm interested to see if it returns using a select or if you return the table variable. Commented Oct 25, 2012 at 12:50

1 Answer 1

2

You may try to set nocount on on your stored procedure to prevent the server from returning the row count. This could be mistaken by SSIS as the returned result set. See this

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.