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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s