我正在尝试将数据从 MySQL 表加载到 SQL Server 2012 表。 为此,我安装了“mysql-connector-odbc-5.3.4-win32”驱动程序。
之后使用数据源“.Net Framework Data Provider For Odbc”导入数据
我为 Mysql 提供了正确的连接字符串和 DSN。
最后出现错误
- Setting Source Connection (Error)
Messages
Error 0xc02020ff: Source - r_cluster [1]: The Source - r_cluster was unable to retrieve column information for the SQL command. The following error occurred: ERROR [42000] [MySQL][ODBC 5.3(a) Driver][mysqld-5.5.25]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"r_cluster"' at line 1
(SQL Server Import and Export Wizard)
Pipeline component has returned HRESULT error code 0xC02020FF from a method call. (Microsoft.SqlServer.DTSPipelineWrap)
请帮我解决这个问题。
谢谢
最佳答案
我刚刚为自己寻找了这个问题的解决方案,并发现以下方法可行。 在 ODBC 设置中(确保您使用的是 ANSI 驱动程序
- 选择详细信息按钮
- 在底部的初始声明中
屏幕
设置 session sql_mode=ansi_quotes;
关于mysql - 使用 SSMS 将数据从 MySql 传输到 SQL Server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33145161/