Monthly Archives: Nov 2015

Problem with a linked server to MySQL

I was recently faced with an issue whereby following a failover in our clustered environment, the failover node had a slightly different setup for the ODBC connection part of the linked server. The problem was manifesting itself with an error message that stated that: “Commands out of sync; you can’t run this command now” when attempting to insert a record in to the MySQL database.

The resolution to this is to go to the ODBC connector and on the Cursors setting page make sure that: Forward Only Cursor option in the OBDC options is un-ticked.