Solved

Import wizard to import Microsoft Excel 2007 file to SQL Server 2005

Posted on 2011-03-04
7
347 Views
Last Modified: 2012-05-11
Currently I have been using Microsoft Excel 2003 at my work and I am importing the data from Excel file to SQL Server 2005 database by using the import wizard where I choose Excel as the data source. However, I am planning to upgrade the Excel to 2007 version. How would I import Excel 2007 into SQL Server? Can someone walk me through.

Secondly, would all my SSIS break (in case the Excel files are upgraded to 2007, i.e .doc to .docx) where I am using the script task and VB.NET to access the Excel with a code something like this:

SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=" + filename + "', 'SELECT * FROM [" + SheetName + "$]')

Thanks.
0
Comment
Question by:skaleem1
[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
  • 3
7 Comments
 
LVL 9

Expert Comment

by:joshbula
ID: 35038358
You might be able to just change "Excel 8.0" to "Excel 12.0"

You might also need to switch from using Jet to ACE... I don't belive Jet supports Excel 2007.  
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c06b8369-60dd-4b64-a44b-84b371ede16d&displaylang=en


http://social.msdn.microsoft.com/Forums/en/adodotnetdataproviders/thread/e94d7f78-82d0-411c-b538-009fe188544b

0
 
LVL 1

Author Comment

by:skaleem1
ID: 35038432
In SQL Sever 2005 Import wizard, the only option is for Excel 2003 or older versions.
0
 
LVL 40

Expert Comment

by:lcohan
ID: 35038891
Did you tried to inport the EXCEL into SQL by scrip instead?

Is pretty easy to do: Q306397 HOWTO: Use Excel with SQL Server Linked Servers and Distributed Queries

http://support.microsoft.com/kb/306397


0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 40

Expert Comment

by:lcohan
ID: 35038918
For XLSX you should be able to use the process described at:
http://bensullins.com/using-excel-2007-files-as-a-source-in-ssis-2005/

worked for me...
0
 
LVL 1

Author Comment

by:skaleem1
ID: 35087461
Icohan,

I appreciate your help and the links are helpful however I want to know how to import data from Excel  2007 file to SQL Server 2005 database by using the import wizard manually. Can you shed light please.

Thanks
0
 
LVL 40

Accepted Solution

by:
lcohan earned 500 total points
ID: 35088062
Well good luck with that....just because it is not quite possible by using default SQL 2005 installs I gave an option. You must upgrade to SQL 2008 if you really need to do that via import task or SSIS.

http://dineshasanka.spaces.live.com/Blog/cns!22A79FCE82651673!588.entry
0
 
LVL 1

Author Closing Comment

by:skaleem1
ID: 35215353
Thanks, I have a workaround and I am saving the spreadsheet in the compatibility mode with the previous version (97-2003) until I change all my queries to use the Excel 12 driver.
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

688 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