Export multiple sql tables into one Excel tab using SSIS

I am trying to show data in Excel from multiple blocks of sql queries.
There is a stored procedure which give results in the form of multiple tables after execution.
I have to show these tables as they are in a tab in Excel. All tables may have different columns names.

if the first table's data starts from cell A1 and ends at A4 then, after inserting a couple of blank rows, the second table's data must start from cell A7 or A8 and ends at A10 or A11 and so on ,all these different tables should be in same excel tab.
Rahul SinghAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PortletPaulEE Topic AdvisorCommented:
Please refer to this summary https://zappysys.com/blog/ssis-export-to-excel-dynamically/

It starts with a few truths worth mentioning here:
Here are few problems using native Excel Source or Destination.

  • Metadata cannot be changed at runtime
  • Datatype guessing nightmare – only first few rows scanned and wrong datatype selected
  • Cannot export multiple tables to excel
  • Cannot split data into multiple tabs based on certain grouping criteria
  • Cannot specify location where data has to be written

So what you are asking for may, simply put, be impossible.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.