I. Ideas
The free version of MongoVUE supports importing Mongo from MySQL, so the idea is to import MySQL from SQL server and then Mongo from MySQL.
2. Preparation
1. Install the mysql database (I used WAMP to integrate mysql and phpadmin). If necessary, create your own database, such as MyData.
2, download mysql-connector-odbc-5.1.12-win32.msi, install
3. Start ---> Administrative Tools ---> data source (ODBC) ---> User DSN, add MySQL ODBC 5.1 Driver
4. In SQLServer, link to the server and right-click to create a server.
5. Create a table for data import in the MySQL database. For example, the table name is t.
6. Write and import SQL statements in sqlserver, such as insert into openquery (mysql, 'select * from t') select * from t
7. Use vue to import data in mysql
Wait!
Attention
1. SQL server does not use window Authentication
2. Sort Chinese fields with mysql gb2312
3. Modify the mssql bit to mysql tinyint (1), mssql tinyint --> mysql int, mssql varchar (max) --> mysql text cannot be the last field. (It turns out that I don't understand it. If it is the last one, insert all the values in the ID column of the first column as 0)