Solved

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

Posted on 2011-03-04
7
341 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
  • 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 39

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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 39

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 39

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

16 Experts available now in Live!

Get 1:1 Help Now