Error code -- "Unrecognized database format ~~~~~~"

Source: Internet
Author: User

I have been reading the Acess database for the past two days except for my class. It brings me some troubles, but I am still working on these troubles ~~~~ I encountered such a problem yesterday afternoon. The prompt is always displayed: the file cannot be found. I carefully checked the path of the database I created and found this problem for a long time ~~~~~

Suddenly, I thought that the database I used was a database created with access 2010, is it because of this ??? I check its attributes. The extension of the database created by access 2010 is accdb, And I still use the MDB format in the code. I think, maybe this is the reason ?!

If you change the format, a prompt is displayed:


 
Why ??? After standing on the shoulders of giants, I found the problem:

It turns out to be strcn = "provider = Microsoft. Jet. oledb.4.0; persist
Security info = false; "&" Data Source = "& App. microsoft. jet. oledb.4.0 is playing a strange role. The solution is to change it to Microsoft. ace. oledb.12.0.

Now let's compare the two differences:

Microsoft. Jet. oledb.4.0 (hereinafter referred to as the jet engine), you can access the Office
97-2003 (the extension is MDB), but cannot be accessed in these versions.

Microsoft. Ace. oledb.12.0 (hereinafter referred to as the ace engine), the ace engine is
2007 the database connection component released together can access the Office
97-2003. You can also access Office 2007 or later versions (the extension is accdb ).

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.