2015-10-15 114 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),謝謝! –

相關問題