Solved

SSIS  - loading different version of excel files

Posted on 2013-11-08
3
819 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 32

Accepted Solution

by:
Brendt Hess 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

615 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