Distributed transactions between MySQL and MSSQL

前端 未结 2 881
陌清茗
陌清茗 2020-12-17 02:53

I\'ve tried for nearly a week now to get distributed transactions working. I\'ve some procedures on MSSQL which try to select data from MySQL. My need is to do this in one(!

2条回答
  •  难免孤独
    2020-12-17 03:17

    There are two important aspects here --

    1) It seems that OLE DB does have support for distributed transactions - so I would assume that the Microsoft OLE DB Provider for ODBC Data Sources should too...

    I would also assume that if MSDASQL did support distributed transactions then it would handle that functionality directly rather than delegating it to the ODBC Driver...

    Distributed transactions are turned on in the ODBC driver by calling --

    SQLSetConnectAttr(SQL_ATTR_ENLIST_IN_DTC)

    So, enabling OpenLink driver logging via the DSN creation dialogs should help determine whether SQLSetConnectAttr(SQL_ATTR_ENLIST_IN_DTC) is called.

    2) We would need to see additional tracing in order to see the ODBC activity immediately leading up to the "Driver does not support this function" error...

    You can log a support case with OpenLink Software to take this further...

提交回复
热议问题