2015-10-15 70 views
2

我正试图从MySQL表中将数据加载到SQL Server 2012表。 为此我安装了“mysql-connector-odbc-5.3.4-win32”驱动程序。使用SSMS将数据从MySql传输到SQL服务器

使用数据源“ NET Framework数据提供程序的ODBC”

我给正确的连接字符串和DSN为MySQL是导入数据之后。

最后我得到一个错误

- 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) 

请帮我解决这个问题。

感谢

回答

3

我刚才介绍了解决这一问题为自己,发现如下工作。 在您的ODBC设置(请确保您使用的是ANSI司机

  1. 选择详细信息按钮
  2. 在最初的声明 屏幕底部set session sql_mode=ansi_quotes;

MSDN Social - MS server connect to MySQL (ODBC)

+0

这有助于[对我也是](https://ru.stackoverflow.com/q/771115/213987),谢谢! –

相关问题