How to import MySQL data into SQL Server

Source: Internet
Author: User
Tags character set dsn odbc mysql database

1. Install MySQL database ODBC driver, Mysql-connector-odbc-3.51.19-win32.msi

2. Open the Control Panel \ Admin tool \ Data source ODBC and add a MySQL ODBC 3.51 data source to the user DSN.

3. Enter the data source name in the Login Login tab, enter MYSQLDNS in the server server, user username, password password, and then select the database you want to import after you enter it correctly. Set the port and character set character for MySQL to use in the Connect Options connect option.

Note: The character set must correspond to the MySQL server, if MySQL uses the GBK character set, you must set the character set to GBK, otherwise the import to SQL Server may appear the question mark garbled.

4. Open SQL Server Enterprise Manager to create a new database MySQL. Select the database and right-click to select All Tasks \ Import data.

5. Select the data source as another (ODBC data source), and the user/System DSN is Mysqldns. The rest is based on the wizard to import data from the MySQL database into the MSSQL database.

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.