Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««123»»

Create/write to an Excel 2007/2010 spreadsheet from an SSIS package Expand / Collapse
Author
Message
Posted Tuesday, February 11, 2014 7:25 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: 2 days ago @ 7:36 AM
Points: 817, Visits: 2,047
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.



Post #1540183
Posted Tuesday, February 11, 2014 7:39 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, September 2, 2014 8:27 AM
Points: 44, Visits: 125
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.

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.
Post #1540192
Posted Tuesday, February 11, 2014 7:44 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, April 23, 2014 6:12 AM
Points: 94, Visits: 88
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.
Post #1540200
Posted Tuesday, February 11, 2014 8:06 AM
UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: Tuesday, September 2, 2014 10:53 AM
Points: 1,498, Visits: 479
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.
Post #1540219
Posted Tuesday, February 11, 2014 8:08 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, August 22, 2014 12:26 PM
Points: 3, Visits: 109
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
Post #1540221
Posted Tuesday, February 11, 2014 8:16 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, September 2, 2014 8:27 AM
Points: 44, Visits: 125
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.
Post #1540224
Posted Tuesday, February 11, 2014 12:53 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, September 12, 2014 1:36 PM
Points: 128, Visits: 916
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.
Post #1540410
Posted Wednesday, February 12, 2014 10:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 18, 2014 10:31 AM
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/).

Post #1540908
Posted Thursday, February 13, 2014 2:39 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, September 11, 2014 6:40 AM
Points: 5, Visits: 68
Thanks a lot! Your solution worked for me!!!
And now the whole things looks pretty good
Post #1541073
Posted Thursday, February 13, 2014 5:33 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, June 2, 2014 11:04 AM
Points: 3, Visits: 115
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.
Post #1541445
« Prev Topic | Next Topic »

Add to briefcase ««123»»

Permissions Expand / Collapse