Error while importing data from Excel to SQL server 2000 table


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, 2009 at 02:07 AM in Default

vidya gravatar image

11 1 1 1

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

3 answers: sort newest

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, 2013 at 06:24 PM

stevenorris gravatar image


(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, 2011 at 08:23 AM

megamanblue gravatar image

310 6 6 8

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

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

SELECT *             
'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, 2009 at 07:17 AM

RickD gravatar image

1.7k 1 1 4

(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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

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



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Nov 09, 2009 at 02:07 AM

Seen: 3556 times

Last Updated: Apr 09, 2013 at 06:24 PM