gpt4 book ai didi

mysql - 使用 SSMS 将数据从 MySql 传输到 SQL 服务器

转载 作者:行者123 更新时间:2023-11-29 01:54:26 24 4
gpt4 key购买 nike

我正在尝试将数据从 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 驱动程序

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

MSDN Social - MS server connect to MySQL (ODBC)

关于mysql - 使用 SSMS 将数据从 MySql 传输到 SQL 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33145161/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com