• Status: Solved
  • Priority: Low
  • Security: Public
  • Views: 37
  • Last Modified:

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.
0
Rahul Singh
Asked:
Rahul Singh
1 Solution
 
PortletPaulfreelancerCommented:
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.
0

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now