Home > Database > Mysql Tutorial > body text

MySql通过ODBC导入SQLServer出现问题及解决办法_MySQL

WBOY
Release: 2016-06-01 13:42:37
Original
1106 people have browsed it

bitsCN.com
1.      根据操作系统先下载MySql ODBC Driver并进行安装 2.      添加mysql DSN,数据集选与mysql一致的数据集,并设置Connection Pooling Timeout 3.      选择SQL Server Import and Export Wizard,数据源选择.Net FrameworkData Provider for Odbc, 在ConnectionString输入Driver={MySQL ODBC 5.1 Driver}; server=localhost; database=xxx; persistsecurity info=True; sql server mode=true,在DSN中输入前面设置的DSN   4.      目标选择Microsoft OLE DB Provider for SQL Server,在mapping中设置各张数据表的类型,中文列要设置成nvarchar,中文才不会出现乱码 5.      还要设置mysql:set global sql_mode=ansi_quotes; 主要是为了解决SQL语句中无法识别引号的问题   摘自 asd309202533的专栏 bitsCN.com

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template