Implementation of SQL Server connection to ACCESS database

Source: Internet
Author: User
Tags sql server query
The interconnection of different database platforms is generally called the heterogeneous service of databases. Currently, all major databases can achieve such Heterogeneous Interconnection, but the specific implementation technologies of different vendors are different, such: linkedis called LINKEDSERVER, and ODBC is used to interconnect with other databases. The test environment in this article is: Operating System: WIN

The interconnection of different database platforms is generally called the heterogeneous service of databases. Currently, all major databases can achieve such Heterogeneous Interconnection, but the specific implementation technologies of different vendors are different, such: in SQL SERVER, it is called LINKED SERVER, and ODBC is used to interconnect with other databases. The test environment in this article is: Operating System: WIN

DifferentDatabasePlatform interconnection is generally calledDatabaseHeterogeneous servicesDatabaseYesImplementationSuch Heterogeneous Interconnection is only specific to various vendors.ImplementationDifferent technologies, such as linked server in SQL SERVER.ImplementationAnd othersDatabase. The test environment in this article is Windows SERVER (Traditional Chinese system)

InstallDatabase: SQLSERVER2000 (English version) and ACCESS

DetailsImplementationProcedure

1. install ACCESS and sqlserver2000 software on the PC

2. Configure the ODBC data source for windows

Choose "start"> "program set"> "System Management Tools"> "Data Source (ODBC)"> "Configure user DSN" or "system DSN". Choose "add"> "microsoft access driver (*. MDB)-> On the odbc microsoft access setup screen, you can customize the data source name (for example, ACCESSTEST)-> select database to create an odbc access database (*. MDB)-"OK.

ODBC configuration and test completed!

3. ConfigureConnectionServer

Enterprise Manager-security-ConnectionRight-click server-> CreateConnectionServer-DefinitionConnectionName: select another data source. The specified program name is microsoft ole db provider for odbc driver. The product name is optional. The data source name is the data source name defined in ODBC; enter the provider string in the following format: User ID = username; Password = userpasswd (or in the following format: UID = username; PWD = userpasswd ).ConnectionACCESSDatabaseIn the "user name and password"-"Security Tab: Set to use this security context, and enter the ACCESSDatabaseSelect "user name and password"> "server options" and click "OK" by default.

4. All preparations have been completed.

In sqlserver Enterprise Manager-security-ConnectionOpen the server.ConnectionServer-click table and you will see the ACCESSDatabaseAll table names owned by the user, but the table records cannot be viewed here. This requires the use of specific SQL statements in the SQL Server Query analyzer.Implementation! When accessing a table, the format is :[ConnectionServer name]. [ACCESS user]. [Table name]. For more details, I will not go into details here.

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.