SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Export Data from SQL to Excel pie chart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maha
Starting Member

2 Posts

Posted - 01/18/2012 :  06:18:56  Show Profile  Reply with Quote
Good morning everyone,

I am exporting some data from SQL to Excel using the export/import wizard.
I save an SSIS package, that extracts these SQL data into an excel file. I run this package everytime I need to get this data and everything is working fine.
The problem now is that I want this data to get extracted into a pie chart in the excel file not a normal table, so is that possible using the export/import wizard or modifying in the code of the SSIS package (.dtsx)? If no, any suggestions about how could this be done?

Thank you in advance.

Maha

sunitabeck
Flowing Fount of Yak Knowledge

5152 Posts

Posted - 01/18/2012 :  07:21:35  Show Profile  Reply with Quote
My knowledge of Excel is only superficial, but the way I have created pie-charts in Excel is by using underlying tabular data. So if you export the data to Excel in tabular form, and if there is a pie-chart driven off of that tabular data, wouldn't that satisfy your requirements?

Edited by - sunitabeck on 01/18/2012 07:22:20
Go to Top of Page

Maha
Starting Member

2 Posts

Posted - 01/18/2012 :  07:56:54  Show Profile  Reply with Quote
The thing is that I want it automated.
This Excel file is automatically generated on the 1st of each month, so I dont want to have to open the report each time and create a pie chart, I just want that to happen automatically so that the report file is created with the pie chart each time.

Maha
Go to Top of Page

Summer9
Starting Member

New Zealand
1 Posts

Posted - 02/16/2012 :  03:46:17  Show Profile  Reply with Quote
Hello,
The following article share a method to export data from SQL to Excel. But firstly, author creates a template for exporting.
I hope that method in the article can be helpful for you.
Article URL http://www.c-sharpcorner.com/UploadFile/d2dcfc/C-Sharp-create-excel-report-chart-contained-with-mark-designe/

What is Tomorrow
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000