автор |
---|
Гарантированно решить вашу проблему может только отказ от MySQL гетерогенной архитектуры. |
Т.е. все эти статьи не работают?
http://www.techrepublic.com/blog/howdoi/how-do-i-set-up-replication-between-microsoft-sql-server-2000-and-mysql/112http://www.infi.nl/blog/view/id/4/How_To_MySQL_as_a_linked_server_in_MS_SQL_ServerИли же вот это и есть выход:
Unfortunately, the process of replicating between the two systems is not foolproof. Every time the connection between the systems is broken (whether by rebooting, network problems, or simply not running the distribution agent continuously), you will have the possibility of receiving the dreaded Invalid Cursor State error. Luckily, there is an easy workaround. Simply create the MySQL system as a linked server (using the Microsoft OLE DB Provider for ODBC Drivers and the DSN you created). Then, create a replication alert for this error that will run a distributed transaction to the MySQL server instructing it to drop the table MSRepl7 and then restarting the distribution agent. This quick and simple fix will work wonders for your replication stability.