Ver Mensaje Individual
  #1  
Antiguo 12-02-2007
Avatar de Alexander
Alexander Alexander is offline
Miembro
 
Registrado: may 2004
Posts: 235
Reputación: 21
Alexander Va por buen camino
Post OPENROWSET Funciona en MySQL?

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,

Código SQL [-]
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
__________________
Cielos azules
Responder Con Cita