Solved

SSIS  - loading different version of excel files

Posted on 2013-11-08
3
680 Views
Last Modified: 2016-09-05
Hello Experts,
I am using SQL Server 2008 - SSIS to load excel files to database.

SSIS excel connection manager, lets you specify which type of excel file, you will be connecting to either xls or xlsx, you can not use one connection manager for both types, this  only allows the user to always change an xlsx file to xls, then process it,

Is there a way to dynamically change the connection manager, based on the type of excel file, or should i just have two different SSIS packages called, when a different type is processed.

Say i have 2 files - test.xls   and test.xlsx ---  i want to process both files without changing excel connection manager info in SSIS.

Any Idea?

Thanks
0
Comment
Question by:mani_sai
3 Comments
 
LVL 32

Accepted Solution

by:
bhess1 earned 500 total points
ID: 39634819
Your best method to handle this might be a conditional fork.  If it is an XLS file, go down this path - if an XLSX file, go down this other path.

Assuming that the entire package does not require the Excel file connection in every step, this would reduce code duplication and the chance that you fix a bug in one package, but not the other.
0
 
LVL 8

Author Closing Comment

by:mani_sai
ID: 39638894
Thanks
1
 

Expert Comment

by:Himanshi Joshi
ID: 41785640
whatever is the file extension .xls or .xlsx always select excel version -windows 2007 . It will definitely work with both xls and xlsx file. :)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how the fundamental information of how to create a table.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now