Alexander
12-02-2007, 23:29:08
He utilizado la funcion OPENROWSET en SQL Server, pero no se si funciona en MySQL.
Yo utilizo generalmente OPENROWSET en Sql Server, esta es la consulta,
SELECT ProductoInv, DescripcionInv, PrecioInv_1 FROM OPENROWSET('MSDASQL','SIIWI012007';'';'','SELECT * FROM TABLA_MAESTRO_INVENTARIOS')
Pero si la pongo en MySQL no funciona, muestra el siguiente error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('MSDASQL','SIIWI012007' at line 1
Que funcion la puede reemplazar si no es openrowset?
pd. Lo que hace es: Se comunica por medio de mi servidor SQL server a una ODBC en Relativity ( COBOL ).
Gracias por sus comentarios.
Alexander
Yo utilizo generalmente OPENROWSET en Sql Server, esta es la consulta,
SELECT ProductoInv, DescripcionInv, PrecioInv_1 FROM OPENROWSET('MSDASQL','SIIWI012007';'';'','SELECT * FROM TABLA_MAESTRO_INVENTARIOS')
Pero si la pongo en MySQL no funciona, muestra el siguiente error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('MSDASQL','SIIWI012007' at line 1
Que funcion la puede reemplazar si no es openrowset?
pd. Lo que hace es: Se comunica por medio de mi servidor SQL server a una ODBC en Relativity ( COBOL ).
Gracias por sus comentarios.
Alexander