Home > News list > Programming/Database >> Database Operation Tutorial

Sql  Server  Management  Implementation steps for Studio to connect to MySQL

Database Operation Tutorial 2023-05-12 12:13:01 Source: Network

targetGiven MySQL connection parameters (address and user), expect to use Microsoft; SqlServer Management Studio (hereinafter referred to as MSSSMS) connects to MySQL and directly queries or modifies data in MySQL in MSSSMS.realizationStep 1/4: Download and install MySqlConnector/ODBC at MySQL:: DownloadConnector/ODBCSelect the corresponding installation file based on the number of bits in the operating system

target

Given MySQL connection parameters (address and user), expect to use Microsoft; SqlServer Management Studio (hereinafter referred to as MSSSMS) connects to MySQL and directly queries or modifies data in MySQL in MSSSMS.

realization

Step 1/4: Download and install MySqlConnector/ODBC at MySQL:: DownloadConnector/ODBC

Select the corresponding installation file based on the number of bits in the operating system. During installation, you may be prompted to install Microsoft OLEDBDriver first. After successful installation, the following information will be displayed:

Step 2/4: Create DSN; (datasourcename) 

Step 3/4: Create a linked server

--Create Linked Server EXECsp_addlinkedserver@server ='crm', @ srvproduct='MySQL', @ provider='MSDASQL', @ datasrc='crmDNS' -- Delete linked server executesys.sp_dropserver@server ='crm'

Among them@ server=' crm' Refers to a custom service name@ datasrc=' crmDNS'& nbsp; Refers to the data source name in ODBC.

  Step 4/4: Using a demonstration

The above figure shows the query results

The above figure shows inserting data into the MySQL database in the SQL server database

Sql Server Management StudioMysqlrealization,Sql Server Management StudioMysql

Tag: nbsp to Sql Server Management Implementation steps for Studio


Disclaimer: The content of this article is sourced from the internet. The copyright of the text, images, and other materials belongs to the original author. The platform reprints the materials for the purpose of conveying more information. The content of the article is for reference and learning only, and should not be used for commercial purposes. If it infringes on your legitimate rights and interests, please contact us promptly and we will handle it as soon as possible! We respect copyright and are committed to protecting it. Thank you for sharing.

AdminSo

http://www.adminso.com

Copyright @ 2007~2024 All Rights Reserved.

Powered By AdminSo

Open your phone and scan the QR code on it to open the mobile version


Scan WeChat QR code

Follow us for more hot news

AdminSo Technical Support