SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Create/write to an Excel 2007/2010 spreadsheet from an SSIS package


Create/write to an Excel 2007/2010 spreadsheet from an SSIS package

Author
Message
RonKyle
RonKyle
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6752 Visits: 3620
What exactly is wrong with the Excel Destination in SSIS?


Although SSIS does right fairly well to excel files, I find I have to employ inelegant "tricks" when it comes to formatting. If this library can help me avoid this (and thus avoid setting up tabs that have to be ignored by the users) I'm all for trying it. These kinds of libraries are meant to help take things further than would otherwise be possible.



Joseph M. Steinbrunner
Joseph M. Steinbrunner
SSC-Enthusiastic
SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)

Group: General Forum Members
Points: 129 Visits: 178
Very interesting and helpful article. I love the open source and free availability to the DLL you provided. That said, we do a lot of advanced Excel manipulation at our location and have nothing but good things to say about SoftArtisans OfficeWriter ExcelWriter product (http://www.officewriter.com). Yes, it is expensive, but is VERY well supported and can do just about anything you want to do without having Excel actually installed. We do a TON with this product and have used it since it's ActiveX version. No, I don't sell it or get kick-backs. :-D

Haven't used WordWriter or any of their other products due to lack of need, but if you are in a nasty bind, this is a solid solution.
Peter Heller
Peter Heller
SSC Veteran
SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)SSC Veteran (239 reputation)

Group: General Forum Members
Points: 239 Visits: 133
It was an interesting article but it is an inordinate amount of work to transfer data to excel (32bit?). What would you do to export your data if the number of rows were greater than the excel 32 bit limitation? A good sample of test data would be exporting the Sales.Orderdetail table from AdventureWorks2012 (121,000+ rows) to excel 64 bit excel.

I am having issues (see error below) trying to load from excel 64 bit as the source from excel 64bit 2013 and I am using VS 2012 ultimate & SSDT. Another issue is that VS2012 Ultimate & SSDT are a 32bit ide. Very tough to do things in 64bit mode.

[Connection manager "SourceConnectionExcel"] Error: The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered. If the 32-bit driver is not installed, run the package in 64-bit mode. Error code: 0x00000000.
An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".


My preference would be that SSIS should leverage either the 32 bit or 64 bit drivers transparently when creating a data flow.
Chris Hurlbut
Chris Hurlbut
SSCrazy
SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)SSCrazy (2K reputation)

Group: General Forum Members
Points: 2046 Visits: 540
I had to insert headers through ssis, found out you had to install excel on server, but I ended up with one script task for formatting/adding header. This seems like a whole lot more work.
Richard Torrone
Richard Torrone
Grasshopper
Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)Grasshopper (11 reputation)

Group: General Forum Members
Points: 11 Visits: 135
Dear Creator of this wonderful EPPlus library,

Sorry for the down and dirty trench view ...

Does this mean we can get rid of the G_d D_mned AccessDatabaseEngine.exe install on the Server (Win/SQL 2008 R2) and not have to mess around with all of that run 32 bit mode and install 32 bit ver so we can see the code in BIDs 2008?

If no, please provide the GPS coordinates where you sleep most nights? (lol)

Honestly, even if we still have to deal with this AccessDatabaseEngine.exe garbage I still think your EPPlus stuff is wonderful and will definitely use it.

Thank you for creating it.

Regards,
Rich Torrone
Joseph M. Steinbrunner
Joseph M. Steinbrunner
SSC-Enthusiastic
SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)SSC-Enthusiastic (129 reputation)

Group: General Forum Members
Points: 129 Visits: 178
Honestly, even if we still have to deal with this AccessDatabaseEngine.exe garbage I still think your EPPlus stuff is wonderful and will definitely use it.


With SoftArtisans ExcelWriter, you don't need anything but standard data sets and data tables. Again, can be expensive, but if you are doing a ton of Excel automation and need full control (formatting, freeze panes, etc.), you save money in the long run. Additionally, it has 32 and 64 bit versions and likely can handle any scenario you throw at it.
Stan Kulp-439977
Stan Kulp-439977
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2375 Visits: 1143
I figured out how to do this and found it useful so I thought I would share what I had learned in case other people might find it useful.

I didn't mean to offend anyone by ignoring the Excel destination. I just never found it very useful for what I needed to do. I have also found that an Excel file exported from SSRS can be a sloppy mess with overlapping fields and columns.

This is a free, reliable solution and it allows you to construct the spreadsheet the way you want it.
kathypdx
kathypdx
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 10
My colleague and I had the same error message ("Could not load file or assembly"). We resolved it by adding the EPPlus assembly to the GAC as described in this article: http://emendezrivas.com/45/ which has a link to these specific instructions: http://emendezrivas.wordpress.com/2011/03/19/add-an-assembly-to-the-gac/).
t.mozelt
t.mozelt
SSC Journeyman
SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)SSC Journeyman (90 reputation)

Group: General Forum Members
Points: 90 Visits: 101
Thanks a lot! Your solution worked for me!!!
And now the whole things looks pretty good
:-)
bstephens
bstephens
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 119
I also find the Excel external data source feature handy. You can put your query into a view or select/insert into a transient table if view isn't possible for your query and slurp in up to 1 million records for excel 2010 (64bit is what I have) on my desktop. The insert into option is particularly handy sometimes when I have a query that isn't practical to run all at once and must be run in smaller chunks (with a not exists for pk in my transient table so no duplicates). From an excel template you choose Data > From Other Sources > From SQL Server

I think you can also have your query live in the excel file connection, but I haven't explored that.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search