Hello,
I've tried to import database from MySQL using supplied "Import and export data" tool. Connection to MySQL is done through ODBC connector. Every thing works OK until final step - selecting data from MySQL and inserting to MS SQL. The problem is that select statement issued from this utility has double quoted table names and that results in MySQL syntax error. Is there a way to overcome this problem? Here is the trace:
<...>
DTSWizard ee4-e90 ENTER SQLExecDirectW
HSTMT 05541E30
WCHAR * 0x015A5F2C [ -3] "SELECT * FROM "backup"\ 0"
SDWORD -3
DTSWizard ee4-e90 EXIT SQLExecDirectW with return code -1 (SQL_ERROR)
HSTMT 05541E30
WCHAR * 0x015A5F2C [ -3] "SELECT * FROM "backup"\ 0"
SDWORD -3
DIAG [42000] [MySQL][ODBC 5.1 Driver][mysqld-4.1.19-community-nt]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 '"backup"' at line 1 (1064)
<...>
I've tried to import database from MySQL using supplied "Import and export data" tool. Connection to MySQL is done through ODBC connector. Every thing works OK until final step - selecting data from MySQL and inserting to MS SQL. The problem is that select statement issued from this utility has double quoted table names and that results in MySQL syntax error. Is there a way to overcome this problem? Here is the trace:
<...>
DTSWizard ee4-e90 ENTER SQLExecDirectW
HSTMT 05541E30
WCHAR * 0x015A5F2C [ -3] "SELECT * FROM "backup"\ 0"
SDWORD -3
DTSWizard ee4-e90 EXIT SQLExecDirectW with return code -1 (SQL_ERROR)
HSTMT 05541E30
WCHAR * 0x015A5F2C [ -3] "SELECT * FROM "backup"\ 0"
SDWORD -3
DIAG [42000] [MySQL][ODBC 5.1 Driver][mysqld-4.1.19-community-nt]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 '"backup"' at line 1 (1064)
<...>