SQL Server connection to an Access database implementation

Source: Internet
Author: User
Tags dsn odbc table name access database

The interconnection of different database platform is commonly called the heterogeneous service of the database, now each big database can realize such heterogeneous interconnection, but the specific implementation technology of each vendor is not the same, such as: In SQL Server called linked server, through ODBC and other database interconnection. The test environment for this article is: Operating system: WINDOWS2000 SERVER (Traditional system)

Installation database: SQLSERVER2000 (English) and access

Concrete implementation Steps

1. Require access and sqlserver2000 software to be installed on a PC

2. Configure Windows ODBC Data source

Start Menu-"assembly-" System management Tool-"data source (ODBC)-" Enter configure User DSN or System DSN can: Add--Select Microsoft ACCESS DRIVER (*. MDB)-"In the ODBC MICROSOFT ACCESS Setup screen, customize the data source name (optional: accesstest)-" Database Select to select an ACCESS repository (*) to establish ODBC. MDB)-"OK complete."

Configure and test ODBC complete!

3. Configure the connection server in sqlserver2000

Enterprise Manager-"Security-" Connection server-"right" New connection server-"define the connection name; Select a different data source; Specify the program name: MICROSOFT OLE DB PROVIDER for ODBC DRIVER; Product name is not filled; Data source Specifies the name of the data source that is defined in ODBC just now; the provider string is filled in the following format: User id=username; PASSWORD=USERPASSWD (or in the following format: Uid=username; PWD=USERPASSWD), where the username and password correspond to the username and password in the Access database to which you want to connect-security tab: Set to use this security context and enter Access's database username and password-the Server Option tab page can be determined by default-"."

4. Preparatory work Completed

In SQL Server Enterprise Manager-"security-" connect to the server to open the newly built connection server-"Click on the table, you can see in the right window of the Access database users have all the table names, but here you can not view the records of the table, This needs to be implemented in the Sqserver Query Analyzer with specific SQL! When accessing a table, use the format: [Connect server name]. [Access users]. [Table name]. More detailed and specific use here no longer repeat.

Related Article

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.