SQL R2 Add a remote server link to MySQL

Source: Internet
Author: User
Tags odbc

(1). My SQL R2 is located on a system that is Windows Server 2008 *64

(2). MySQL resides on a system that is Windows Server 2003 *86

What I want to achieve is to access the MySQL database data directly in the SQL R2 database.

1. Install MySQL ODBC connector5.3.4

http://dev.mysql.com/downloads/connector/odbc/

2.

Installing the MySQL ODBC connector5.3.4 driver prompts the following questions:

Error1918.Error installingODBC DriverMysqlOdbc5.1Driver,ODBC Error13: the setup routines for the mysql ODBC 5.1 driver could not is loaded due to system error Code 126: the specified module could not be found .... \myodbc5s.dll). verify ...             
Cause: the Microsoft Visual C + + redistributable Package needs to be installed before the installation succeeds. 

Link Address: 64-bit version:

http://www.microsoft.com/en-us/download/confirmation.aspx?id=14632

32-bit version:

http://www.microsoft.com/en-gb/download/details.aspx?id=5555

3. Establish the system DSN in ODBC named "MYSQLODBC"

4. Then add the linked server in SQL R2, the data source select the MYSQLODBC above

Connection string:driver={mysql ODBC 5.3 ANSI Driver}; Server=localhost; Database=test; User=root; password=root;option=3;

5. Check

Select *  from Sys.servers

6. Querying MySQL database data

Haha, it's done!

SQL R2 Add a remote server link to MySQL

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.