【问题标题】:Data Transfer from MySql to SQL server using SSMS使用 SSMS 将数据从 MySql 传输到 SQL Server
【发布时间】:2016-01-13 17:05:29
【问题描述】:

我正在尝试将数据从 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)

请帮我解决这个问题。

谢谢

【问题讨论】:

    标签: mysql sql sql-server sql-server-2008


    【解决方案1】:

    我刚刚为自己寻找解决此问题的方法,并发现以下方法可行。 在您的 ODBC 设置中(确保您使用的是 ANSI 驱动程序

    1. 选择详情按钮
    2. 在初始语句的底部 屏幕set session sql_mode=ansi_quotes;

    MSDN Social - MS server connect to MySQL (ODBC)

    【讨论】:

      猜你喜欢
      • 2010-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-22
      • 1970-01-01
      • 2016-12-04
      • 2015-10-19
      • 1970-01-01
      相关资源
      最近更新 更多