Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7488797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:02:26+00:00 2026-05-29T15:02:26+00:00

I am using ms excell as database in java program. but i am getting

  • 0

I am using ms excell as database in java program.
but i am getting following error.

java.sql.SQLException: [Microsoft][ODBC Excel Driver] External table is not in the expected format

I am not getting why this exception occurs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:02:27+00:00Added an answer on May 29, 2026 at 3:02 pm

    Oh, that’s the one I got quite often. It’s one of many reasons why I’m switching to Apache POI

    Here is the approach I got from our internal Wiki. Maybe it will help:

    Approach one

    Make sure you are using the correct ODBC driver for the version of excel (i.e. Excel 2003 or Excel 2007) you are trying to open.
    NOTE: The error in this instance “SQLDriverConnect failed :[Microsoft][ODBC Excel Driver] External table is not in the expected format.”, was caused by selecting an Excel 2003 ODBC Driver to open up an Excel 2007 file.

    To Configure an ODBC Excel Driver do the following:

    1. Open the Control Panel -> Administrative Tools -> Data Sources (ODBC)
    2. A Windows Dialog Box named “ODBC Data Source Administrator” will appear
    3. Click on the User DSN tab, then click Add
    4. Scroll down until you see “Microsoft Excel Driver (*.xls, *xlsx, *xlsm, *xlsb)”, Select it, Click “Finish”
    5. A Windows Dialog Box named “ODBC Microsoft Excel Setup” will appear
    6. In the box next to “Data Source Name:” type in a name for the Data Source, i.e. “Excel 2007”
    7. In the box next to “Description:” type in a description. i.e. Excel 2007 ODBC Driver”
    8. In the drop down box next to “Database Version:” verify that “Excel 12.0” is selected for Excel 2007 (.xlsx) files, or “Excel 97-2000” is selected for Excel 2003 (.xls) files, etc.
    9. Click “OK” on the Windows Dialog Box named “ODBC Microsoft Excel Setup”
    10. Click “OK” on the Windows Dialog Box named “ODBC Data Source Administrator”

    An Alternative Process

    Instead of trying to reconfigure your ODBC settings, you can also open the Excel file directly in Statistics.

    To open up your Excel file directly in Statistics, launch Statistics and do the following from the menus in the Statistics Data Editor Window:

    1. File>>Open>>Data and select “Excel(*.xls, *.xlsx, .xlsm)” in the ‘Files of type’ dropdown menu
      NOTE: if you have Excel 2003 installed your value in the “Files of Type” dropdown menu will be “Excel(
      .xls)”
    2. Browse your system and select the Excel file you wish to open

    If you can provide more information about what are you doing and how, maybe then I can give you some more detailed information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the program to send data from database to the Excel file .
I am developing a simple Java program to create an Excel file using (Apache
i am connecting to a mysql database through excel using odbc what does this
I need to upload data in an excel sheet to the database using java.
I have requirement to import Excel file in MySQL database using Java. I Googled
I'm using MS Excel to get data from a MySQL database through ODBC. I
I generate some png charts and excel files using a mysql database. I display
i am using excel to connect to a mysql database: Dim dpath, atime, rtime,
i am using excel to connect to a mysql database i am doing this:
i am trying to insert data from excel sheet into database in java. for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.