Solved

SSIS  - loading different version of excel files

Posted on 2013-11-08
3
763 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:
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

I have a large data set and a SSIS package. How can I load this file in multi threading?
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

751 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