I am trying to migrate a table from MySql to MSSQL using openquery, but I keep getting the following error message:
OLE DB provider "MSDASQL" for linked server "MYSQL" returned message "Requested conversion is not supported.".
Msg 7341, Level 16, State 2, Line 1
Cannot get the current row value of column "[MSDASQL].description" from OLE DB provider "MSDASQL" for linked server "MYSQL".
The SQL query I'm trying to run is:
insert into dbo.tickets (id, description, createdAt)
select * from openquery(MYSQL, 'select * from mydb.tickets')
Since openqueryI already copied a couple of tables, but this trick deceived me.
On either side of the database field description varchar(8000). There is no line in MySql where the description is null and the longest description is only 5031 characters.
I tried to create a new view in MySql with the same data structure, but got the same error. I cannot determine which row has an invalid description field because the table contains more than 65,000 rows.
SQL, OutOfMemoryException Management Studio. sql-dumped 60 .
?
!