x
login about faq Site discussion (meta-askssc)

Error while importing data from Excel to SQL server 2000 table

Hi,

I am getting error when i am importing data from excel to SQL server table. Error is:

Error Source: Microsoft JET Database Engine. Description : External table is not in the expected format. (Microsoft JET Database Engine)

When i copy the data of excel file which is coming from Oracle database to a new excel file then it is working fine. But with same excel file giving error. I have checked the format of each column of the excel getting from Oracle.

more ▼

asked Nov 09 '09 at 02:07 AM in Default

vidya gravatar image

vidya
11 1 1 1

(comments are locked)
10|1200 characters needed characters left

3 answers: sort voted first

You have extra rows in the excel file. Run this with OPENROWSET():

SELECT *             
FROM            
OPENROWSET('Microsoft.Jet.OLEDB.4.0',            
'Excel 8.0;Database=<location of file and name>.xls',            
'SELECT * FROM [<worksheet>$]')            

and you should see the extra rubbish in the workbook.

more ▼

answered Nov 10 '09 at 07:17 AM

RickD gravatar image

RickD
1.6k 1 1 4

(comments are locked)
10|1200 characters needed characters left

There is a possibility of corrupting excel data. You would finish the exporting with how to repair excel files after recovery

Application http://www.repairexcel.recoverytoolbox.com will help to recover the integrity of data and export it to sql table

more ▼

answered Apr 09 at 06:24 PM

stevenorris gravatar image

stevenorris
0

(comments are locked)
10|1200 characters needed characters left

Workaround assuming you are using DTS: Save the excel file as a CSV or other delimited text file and import with that instead. This can be done quite easily in Excel.

more ▼

answered May 26 '11 at 08:23 AM

megamanblue gravatar image

megamanblue
310 6 6 8

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x454
x98
x62
x14

asked: Nov 09 '09 at 02:07 AM

Seen: 1648 times

Last Updated: Apr 09 at 06:24 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.