Data Dump to Excel through SSIS and SSRS

There are many ways to handle dumping data to Excel, and while there is no right or wrong way to push the data to Excel, there are some methods which will work out to the most benefit depending on the users' needs.

For the options below, I will use the example of a department store where the Excel file provides information to Department Managers on their product pricing across 52 weeks.

 

Option 1: Use a Reporting Services report.
When to use: When desired set of data frequently changes through parameters, or when data and charts are relatively unchanged.  Few steps needed to get the data (couple stored procs or SQL commands).  Small to medium sized set of data.  Include drilldowns in the Excel file.  Few destinations for subscriptions (unless using data driven subscriptions).

One great advantage with Reporting Services is the efficiency of generating the report and the flexibility offered in running the report.  Maybe, for our example, the Electronics Department Manager wants to only view television pricing, the can be set up as a parameter to filter the report in RS, while with a SSIS package, the user may need to filter the full set of data in the Excel file after it is generated.  The subscriptions can become unwieldy if there are a lot of destinations (such as 10 departments with 10 different emails), but can be better managed with data driven subscriptions (available in SQL Server Enterprise).  Also, any data manipulation after the report is generated to an Excel file will take some extra time (such as setting up a pivot table or pivot chart to view the data in various ways).

image

 

Option 2: Use an Excel file through Integration Services
When to use: When format of data is of little importance.  Many tasks needed to get data.  Large set of data.  Many subsets of the report and/or delivery destinations.

Maybe option 1 was not a good choice for our case.  Could be that the data was in several places, the amount of data is more than we would prefer reporting services to generate, etc.  The SSIS package can be set up to key off email addresses and department mappings in a table if we want to send only an excel file with that department’s product information.  We create an Excel file for the data, we set it up as an Excel Destination in SSIS and add the tasks to our package, run the package, and the data in Excel is listed as test.  Not very useful for the Department Managers, because now they will need to convert the numerical data out of the textual form, prior to being able to manipulate the data through pivots, etc..  Also, the header formatting in our Excel file was carried over across the data as well (we can fix the header formatting issue in the excel file from SSIS, and I will cover that more when discussing the steps for setting up SSIS to use Option 3).  Because we don’t necessarily know what the user does not want in the report, we are likely to have a larger Excel file using this method than Option 1, where the user may filter down to products or weeks they are interested in prior to exporting to Excel.

image

 

Option 3: Use an Excel file through Integration Services with SQL Task Drop/Create Table
When to use: When formatting of data is important and/or data manipulation is desired (such as through a pivot table or pivot chart).  Many tasks needed to get the data.  Large set of data.  Many subsets of the report and/or delivery destinations.

With this option, we are able to merge together aspects of Option 1 and Option 2 to remove some of the limitations that resulted from either method.  Using this method, we can create a pivot table on one sheet and have the data refresh when open (a limitation with Option 2 because the data was non-numeric).  We also leave the option open for the user to add/remove fields from the pivot, a limitation of a pivot in a RS report.    As with Option 2, the Excel file size is likely to be larger than Option 1 and we can use supporting tables in the database to determine where individual reports should go.  There is more time involved in setting up the report in this method compared to the other methods, be depending on the circumstances and users’ needs, the user may have a much better experience in obtaining the information they through this method.

 

Next update will cover the setup of Option 3 in SSIS, followed by an update later on the topic of Reporting Services.

posted @ Wednesday, July 15, 2009 3:07 PM

Print

Comments on this entry:

# re: Data Dump to Excel through SSIS and SSRS

Left by histoire du casino at 5/26/2010 9:58 PM
Gravatar
We create an Excel file for the data, we set it up as an Excel Destination in SSIS and add the tasks to our package, run the package, and the data in Excel is listed as test. Not very useful for the Department Managers, because now they will need to convert the numerical data out of the textual form, prior to being able to manipulate the data through pivots...
Thanks...

# re: Data Dump to Excel through SSIS and SSRS

Left by casual dresses at 6/23/2010 2:16 PM
Gravatar
This is a great project and I hope you get a lot of support!

# re: Data Dump to Excel through SSIS and SSRS

Left by reergr at 7/4/2010 2:46 PM
Gravatar
[url=http://www.cheapjerseys20.com] vikings jerseys [/url]
[url=http://www.20nfljerseys.com] miami dolphins jerseys [/url]
[url=http://www.20nfljersey.com] minnesota vikings jerseys [/url]
[url=http://www.supplysneakers.com] cheap jordans [/url]
[url=http://www.shoessee.com] air force ones shoes [/url]
[url=http://www.cheapjordan-wholesale.com] authentic jordans [/url]
[url=http://www.cnshoesweb.com]cheap jordans [/url]
[url=http://www.cheapjerseyssale.us]cheap nfl jerseys[/url]
[url=http://www.jerseyssale.us]jerseys on sale[/url]
[url=http://www.cheapsaleweb.com] air jordans [/url]
[url=http://www.replicajerseys.us] authentic jordan shoes [/url]
[url=http://www.offjerseys.us]wholesale nfl jerseys[/url]
[url=http://www.cheapjerseysok.us]discount nfl jerseys[/url]
[url=http://www.cheapnewjerseys.us]wholesale jerseys[/url]
[url=http://www.mbtshoesweb.com] new jordan shoes [/url]
[url=http://www.discountnfl.us] nfl clothing [/url]
[url=http://www.nfljerseysok.uscustomized nfl merchandise{/url]
[url=http://www.wholesale-nfljerseys.us] sports jerseys [/url]
[url=http://www.discountoakleysunglasses.us] dior sunglasses [/url]
[url=http://www.cheapjerseyweb.com] soccer jerseys [/url]
[url=http://www.cheap-ugg-boot.us] sheepskin boots [/url]

# re: Data Dump to Excel through SSIS and SSRS

Left by Agile Informatics at 8/4/2010 5:05 PM
Gravatar
I currently have a development box with SQL 2005 and VS 2005. I have created SSIS packages and SSRS reports using the above. I was informed today that the live server will be using SQL 2008.

# re: Data Dump to Excel through SSIS and SSRS

Left by Agile Informatics at 8/4/2010 5:06 PM
Gravatar
I currently have a development box with SQL 2005 and VS 2005. I have created SSIS packages and SSRS reports using the above. I was informed today that the live server will be using SQL 2008 and I am assuming that with SQL 2008 we will have to have VS 2008 as well? I am hoping that my packages and reports will be converted automatically

# re: Data Dump to Excel through SSIS and SSRS

Left by Agile Informatics at 8/4/2010 5:06 PM
Gravatar
I currently have a development box with SQL 2005 and VS 2005. I have created SSIS packages and SSRS reports using the above.

# re: Data Dump to Excel through SSIS and SSRS

Left by Agile Informatics at 8/4/2010 5:07 PM
Gravatar
This was created when you created the Excel source in the Data Flow. Click on Expressions in the properties windows and open the expressions editor for the Excel connection manager.

# re: Data Dump to Excel through SSIS and SSRS

Left by Agile Informatics at 8/4/2010 5:08 PM
Gravatar
This was created when you created the Excel source in the Data Flow and Click on Expressions in the properties windows and open the expressions of editor for the Excel connection manager.

# re: Data Dump to Excel through SSIS and SSRS

Left by Agile Informatics at 8/4/2010 5:08 PM
Gravatar
good post and approve it

# re: Data Dump to Excel through SSIS and SSRS

Left by Agile Informatics at 8/4/2010 5:09 PM
Gravatar
This product does bring in a new perspective and new thinking the way we used to work with DTS. Most of the DTS architecture has undergone dramatic changes. In this article I will walk through an step-by-step easy uploading of a given datafile into SQL Server.

# supra shoes

Left by supra shoes at 8/6/2010 8:16 PM
Gravatar

# supra shoes

Left by supra shoes at 8/6/2010 8:20 PM
Gravatar
[url=http://coachoutletfactory.com/]coach outlet[/url]
[url=http://suprashoes365.com/]Supra Shoes[/url]
[url=http://suprashoes365.com/]supra outlet[/url]
[url=http://suprashoes365.com/]cheap supra shoes[/url]
[url=http://suprashoes365.com/]supra shoes on sale[/url]

# supra shoes

Left by supra shoes at 8/6/2010 8:22 PM
Gravatar

# supra shoes

Left by supra shoes at 8/6/2010 8:23 PM
Gravatar

# re: Data Dump to Excel through SSIS and SSRS

Left by plasma tvs at 8/9/2010 12:49 AM
Gravatar
I faced lot of real difficulties when dumping to excel. But you tutorial was very useful and I came to know about various uses of SSIS and SSRS. Very useful and intersting too.

# re: Data Dump to Excel through SSIS and SSRS

Left by Kuber Infotek at 8/9/2010 7:57 PM
Gravatar
I would like to loop through a SQL Server table that contains the paths to all the reports(SSRS) we need to run and then execute the reports via SSIS. What task should I be doing to do this? Will the For Loop work for something like this? Anyone Please Explain how to do it .

# re: Data Dump to Excel through SSIS and SSRS

Left by Kuber Infotek at 8/9/2010 7:57 PM
Gravatar
I would like to loop through a SQL Server table that contains the paths to all the reports(SSRS) we need to run and then execute the reports via SSIS.

# re: Data Dump to Excel through SSIS and SSRS

Left by TrainPro School Fremont at 8/10/2010 12:15 AM
Gravatar
The Unit will combine a number of day case gynaecology services currently located in different areas of the hospital, to provide a single service where both gynaecology nursing and medical expertise and resources are immediately available. Our aim is.

# re: Data Dump to Excel through SSIS and SSRS

Left by online blackjack at 8/11/2010 12:25 AM
Gravatar
I will recommend my friends to read this.I will bookmark your blog and have my children check up here often.I am quite sure they will learn lots of new stuff here than anybody else!....

# re: Data Dump to Excel through SSIS and SSRS

Left by online blackjack at 8/11/2010 12:31 AM
Gravatar
I will recommend my friends to read this.I will bookmark your blog and have my children check up here often.I am quite sure they will learn lots of new stuff here than anybody else!........

# re: Data Dump to Excel through SSIS and SSRS

Left by online blackjack at 8/11/2010 12:32 AM
Gravatar
I will recommend my friends to read this.I will bookmark your blog and have my children check up here often.I am quite sure they will learn lots of new stuff here than anybody else!......

# re: Data Dump to Excel through SSIS and SSRS

Left by online blackjack at 8/11/2010 12:32 AM
Gravatar
I will recommend my friends to read this.I will bookmark your blog and have my children check up here often.I am quite sure they will learn lots of new stuff here than anybody else!.......

# NFL jerseys

Left by NFL jerseys at 8/13/2010 1:19 AM
Gravatar
But you tutorial was very useful and I came to know about various uses of SSIS and SSRS. Very useful and intersting too.

# re: Data Dump to Excel through SSIS and SSRS

Left by handychina at 8/14/2010 1:39 PM
Gravatar
efox-shop the best place to buy dual SIM dual standby phone. The efox-shop service is good, and the full range, such as Lesegerät chinesische handy kaufen china handy kaufen Großhandel Handy Grosshandel Handy Großhandel Handys chinesische handy TV Handy Chinesische Handys welcome to purchase http://www.efox-shop.com <a href="http://www.efox-shop.com"target=blank>chinesische handy kaufen china handy tv handy Chinesische Handys

# re: Data Dump to Excel through SSIS and SSRS

Left by shj at 8/24/2010 3:14 PM
Gravatar
[url=http://www.bigbigwatch.com]Rolex Watches[/url]
[url=http://www.swissluxurywatches.cn]Rolex Watches[/url]
[url=http://www.bigbigwatch.com]Breitling Watches[/url]
[url=http://www.radiation-eliminator.com]Computer Radiation Eliminator[/url]
[url=http://www.replica-watches.com.cn]Replica Watches[/url]
[url=http://www.cartierwatches.org.cn]Cartier Watches[/url]
[url=http://www.paneraiwatches.cn]Panerai Watches[/url]
[url=http://www.bvlgariwatches.cn]Bvlgari Watches[/url]
[url=http://www.breitlingwatches.cn]Breitling Watches[/url]
[url=http://www.tagheuerwatches.org.cn]Tag Heuer Watches[/url]
[url=http://www.patek-philippe.org.cn]Patek Philippe Watches[/url]
[url=http://www.radowatches.org.cn]Rado Watches[/url]
[url=http://www.montblancwatches.cn]Mont Blanc Watches[/url]
[url=http://www.alangesohne.org.cn]A.Lange & Sohne[/url]
[url=http://www.piagetwatches.org.cn]Piaget Watches[/url]
[url=http://www.vacheronconstantin-watches.cn]Vacheron Constantin Watches[/url]
[url=http://www.frankmuller.cn]Frank Muller Watches[/url]
[url=http://www.breitlingwatches.com.cn]Breitling Watches[/url]
[url=http://www.longinewatches.cn]Longine Watches[/url]
[url=http://www.hublotwatches.com.cn]Hublot Watches[/url]
[url=http://www.montblancwatches.com.cn]Mont Blanc Watches[/url]
[url=http://www.paneraiwatches.com.cn]Panerai Watches[/url]
[url=http://www.chopardwatches.cn]Chopard Watches[/url]
[url=http://www.vacheron-constantin-watches.cn]Vacheron Constantin Watches[/url]
[url=http://www.bellrosswatches.cn]Bell&Ross Watches[/url]
[url=http://www.rolexwatches24.com]Rolex Watches[/url]
[url=http://www.ronghuaweb.com]Seo[/url]
[url=www.electromagnetic-radiation-eliminator.com]Electromagnetic Radiation Eliminator[/url]
[url=http://www.zblmw.com]珠宝联盟网[/url]
[url=http://www.zblmw.com]珠宝[/url]
[url=http://www.yiliboli.com]移动推拉门[/url]
[url=http://www.ecexp.com]全球贸易网[/url]
[url=http://www.ronghuaweb.com]荣华网络[/url]
[url=http://www.ronghuaweb.com]SEO[/url]
[url=http://www.seoogle.cn]搜索引擎优化[/url]
[url=http://www.seoogle.cn]seo[/url]
[url=http://www.sanyue-china.com]莆田装饰[/url]
[url=http://www.ptbxpx.com]莆田培训[/url]

# re: Data Dump to Excel through SSIS and SSRS

Left by SHJ at 8/24/2010 3:31 PM
Gravatar
[url=www.bigbigwatch.com/WATCH-BOXES-Watches-91.html]WATCH BOXES[/url]
[url=www.bigbigwatch.com]MONT BLANC PEN Watches[/url]
[url=www.bigbigwatch.com]ALAIN SILBERSTEIN Watches[/url]
[url=http://www.bigbigwatch.com/ANONIMO-Watches-27.html]ANONIMO Watches[/url]
[url=www.bigbigwatch.com]A.LANGE & SOHNE Watches[/url]
[url=www.bigbigwatch.com]AUDEMARS PIGUET Watches[/url]
[url=www.bigbigwatch.com]BAUME & MERCIER Watches[/url]
[url=www.bigbigwatch.com/BELL-and-ROSS-Watches-31.html]BELL & ROSS Watches[/url]
[url=www.bigbigwatch.com/BLANCPAIN-Watches-32.html]BLANCPAIN Watches[/url]
[url=http://www.bigbigwatch.com/BREGUET-Watches-33.html]BREGUET Watches[/url]
[url=www.bigbigwatch.com/BREITLING-Watches-34.html]BREITLING Watches[/url]
[url=http://www.bigbigwatch.com/B.R.M-Watches-157.html]B.R.M Watches[/url]
[url=www.bigbigwatch.com/BURBERRY-Watches-35.html]BURBERRY Watches[/url]
[url=http://www.bigbigwatch.com/BVLGARI-Watches-36.html]BVLGARI Watches[/url]
[url=http://www.bigbigwatch.com/CARTIER-Watches-37.html]CARTIER Watches[/url]
[url=http://www.bigbigwatch.com/CHANEL-Watches-38.html]CHANEL Watches[/url]
[url=www.bigbigwatch.com/CHAUMET-Watches-137.html]CHAUMET Watches[/url]
[url=http://www.bigbigwatch.com/CHOPARD-Watches-39.html]CHOPARD Watches[/url]
[url=www.bigbigwatch.com/CHRISTIAN-DIOR-Watches-40.html]CHRISTIAN DIOR Watches[/url]
[url=www.bigbigwatch.com/CHRONOSWISS-Watches-41.html]CHRONOSWISS Watches[/url]
[url=www.bigbigwatch.com/CONCORD-Watches-123.html]CONCORD Watches[/url]
[url=http://www.bigbigwatch.com/CORUM-Watches-42.html]CORUM Watches[/url]
[url=http://www.bigbigwatch.com/DEWITT-Watches-43.html]DEWITT Watches[/url]
[url=http://www.bigbigwatch.com/EBEL-Watches-44.html]EBEL Watches[/url]
[url=http://www.bigbigwatch.com/FENDI-Watches-45.html]FENDI Watches[/url]
[url=www.bigbigwatch.com/FRANCK-MULLER-Watches-46.html]FRANCK MULLER Watches[/url]

# wholesale nfl jerseys

Left by cheap nfl jerseys at 8/29/2010 8:26 PM
Gravatar

# re: Data Dump to Excel through SSIS and SSRS

Left by fendsell at 9/2/2010 6:54 AM
Gravatar
Back in the day, [url=http://www.louboutincheapshoes.com]Christian Louboutin[/url] high heels were mostly worn to smart parties but today they have become a part of everyday wear.

Women wear heels to the office and even for menial tasks and outings like grocery shopping. Famous for her love of high heels, Ms Beckham was even spotted in five inch high Christian Louboutin heels recently when she spent her day out with her boys at a theme park! in we pay more attention, would find that she love [url=www.louboutincheapshoes.com]Christian Louboutin Shoes[/url] very much, we can see many photos when she wear the brand shoes!

The most obvious purpose individuals would want [url=www.louboutincheapshoes.com]Christian Louboutin Sandals[/url] [url=www.louboutincheapshoes.com]Christian Louboutin Boots[/url] or [url=www.louboutincheapshoes.com]Christian Louboutin Pumps[/url] is the types they present.

But the authentic Christian Louboutin shoes are always not easy to afford, thus replica manufacturers help us to enjoy the famous brand shoes in a cheap way. With these high quality [url=http://www.louboutincheapshoes.com]Louboutin Shoes[/url], you do not have to wait for saving money hard. You can have the actual thing since almost immediately as it comes out.

Then, you can be the one everybody looks to intended for fashion recommendations on buying these [url=http://www.louboutincheapshoes.com]Cheap Christian Louboutin[/url]. You’ll show your individual personal flair with them that properly with any suit so nicely they seem ready for you.

Your comment:



 (will not be displayed)


 
 
 
Please add 5 and 2 and type the answer here:
 

Live Comment Preview:

 
«September»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789