MyODBC 3.51.01, OleDB, MS SQL Server And Linked Servers

MyODBC 3.51.01, OleDB, MS SQL Server And Linked Servers

Post by Pierfrancesco Consol » Tue, 12 Feb 2002 17:19:29



Dear MyODBC list,

        I'm not a DAO, ADO or "whatelse" programmer, but I have been waiting for
the new release of MyODBC, hoping that this could be used within a
'facility' included in MS SQL Server.

        I'm trying to connect a Unix MySQL Server to a NT MSSQL Server defining the
first as "Linked Server"  via "OLE DB for ODBC Driver" (using stored
procedure commands, or management console). I can access the tables for
reading using the OPENQUERY/OPENROWSET syntax, but I have found no success
in updating.
        The MS workarounds suggested in article Q270/1/19
(http://support.microsoft.com/default.aspx?scid=kb;EN-US;q270119) did not
resolve the problem.
        Neither with the new MyODBC 3.51.01 version. There is no support for the
linked_server_name.catalog.schema.object_name sintax (MySQL Server problem I
suppose).

And also, for example, the error for the query

select * from openquery (mysql_linkedserver, "SELECT xfield FROM xtable;
UPDATE xtable SET xfield = '+++' WHERE xfield = '---' ")

is always something like

OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [MySQL][ODBC 3.51
Driver][mysqld-3.23.6-alpha-log]You have an error in your SQL syntax near ';
UPDATE xtable SET xfield = '+++' WHERE xfield = '---' ' at line 1]

I have tried the MyOleDB way too, but without success (perhaps without too
much understanding).

        Does someone succeded in this type of connections ?
        Perhaps the problem reside only in the MySQL server ? I have to upgrade the
MySQL server to 4.0 ? Or I have no choice ???

        Thanks in advance.

Consolo Pierfrancesco
Faculty of Economics - University of Padua (ITALY)
www.economia.unipd.it

---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,

 
 
 

1. MyODBC 3.51.01, OleDB, MS SQL Server And Linked Servers

Dear MyODBC list,

        I'm not a DAO, ADO or "whatelse" programmer, but I have been waiting for
the new release of MyODBC, hoping that this could be used within a
'facility' included in MS SQL Server.

        I'm trying to connect a Unix MySQL Server to a NT MSSQL Server defining the
first as "Linked Server"  via "OLE DB for ODBC Driver" (using stored
procedure commands, or management console). I can access the tables for
reading using the OPENQUERY/OPENROWSET syntax, but I have found no success
in updating.
        The MS workarounds suggested in article Q270/1/19
(http://support.microsoft.com/default.aspx?scid=kb;EN-US;q270119) did not
resolve the problem.
        Neither with the new MyODBC 3.51.01 version. There is no support for the
linked_server_name.catalog.schema.object_name sintax (MySQL Server problem I
suppose).

And also, for example, the error for the query

select * from openquery (mysql_linkedserver, "SELECT xfield FROM xtable;
UPDATE xtable SET xfield = '+++' WHERE xfield = '---' ")

is always something like

OLE DB provider 'MSDASQL' reported an error.
[OLE/DB provider returned message: [MySQL][ODBC 3.51
Driver][mysqld-3.23.6-alpha-log]You have an error in your SQL syntax near ';
UPDATE xtable SET xfield = '+++' WHERE xfield = '---' ' at line 1]

I have tried the MyOleDB way too, but without success (perhaps without too
much understanding).

        Does someone succeded in this type of connections ?
        Perhaps the problem reside only in the MySQL server ? I have to upgrade the
MySQL server to 4.0 ? Or I have no choice ???

        Thanks in advance.

Consolo Pierfrancesco
Faculty of Economics - University of Padua (ITALY)
www.economia.unipd.it

---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,

2. BIND and DNS !!!

3. R: MyODBC 3.51.01, OleDB, MS SQL Server And Linked Servers (Multiple-statements ??)

4. Y2K compliance of CVS

5. MyODBC 3.51.01, OleDB,

6. MacOS 8 & PGPMenu

7. Small problems with MyODBC 3.51.01.01 (somewhat lengthy)

8. Webcam pics with Win2000

9. MyOBDC MyODBC 3.51.01 on Windows XP and MS-Access 2000

10. MySQL -> Linked Server in MS SQL Server

11. R: RE MySQL -> Linked Server in MS SQL Server

12. RE MySQL -> Linked Server in MS SQL Server

13. Error in myodbc 3.51.01.00