How to add an access driver to an ODBC data source in win7

Source: Internet
Author: User
ArticleDirectory
  •  
Sometimes in W7, ODBC data source driverProgramOnly SQL
Many people have encountered similar problems.
In some versions, you can [access "Administrative Tools" from the "control panel" and then access "Data Source (ODBC)"] as follows: CMD enter % WinDir % \ syswow64 [There are 32-bit programs in it! A lot!] You can also manually enter and run odbcad32.exe, And the settings are the same as those of XP! It is estimated that you are a 64-bit system program. If you cannot find it, you can write get jet odbc driver for windows7 in Google. There will be a lot of answers!
 
Try it.
 
In addition, accessCode:

// 1. Load the driver,
Class. forname ("Sun. JDBC. ODBC. jdbcodbcdriver ");
// 2. Establish a connection and specify the URL containing the name registered by the database in the data source
String url = "JDBC: ODBC: Score ";
Conn = drivermanager. getconnection (URL );
// 3. Obtain the object for executing the SQL statement from the connection
Stmt = conn. createstatement ();
Score is the database name.

 

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.