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
A possible workaround is to try connecting the data from ORACLE to a Access database instead of an Excel file - then export out to SQL Server. Maybe you will be able to see what's causing your problem in the access database also.
more ▼

answered Sep 25 at 12:30 PM

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

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: 3674 times

Last Updated: 5 days ago