Ver Mensaje Individual
  #10 (permalink)  
Antiguo 14/10/2004, 06:24
Avatar de RsOfT
RsOfT
 
Fecha de Ingreso: marzo-2002
Ubicación: InterNET
Mensajes: 1.121
Antigüedad: 22 años, 1 mes
Puntos: 7
Estuve probando:

Código:
INSERT INTO OpenQuery(SAP,'Select COD_IND,DIRECCION,DESCRIPCION,DIA,MES,NOMBRE_MES,ANO,STANDARD,MALO,REGULAR,BUENO from zIndicador 
as values (8,''OPERACIONES'',''HORAS,EXTRAS,(%,DE,LA,NÓMINA)'',30,09,''SEP'',2004,16.00,16.88,16.24,15.76)')
Server: Msg 170, Level 15, State 1, Line 2
Line 2: Incorrect syntax near ')'.



Código:
INSERT INTO OpenQuery(SAP,'Select COD_IND,DIRECCION,DESCRIPCION,DIA,MES,NOMBRE_MES,ANO,STANDARD,MALO,REGULAR,BUENO from zIndicador') 
as values  ('8,''OPERACIONES'',''HORAS,EXTRAS,(%,DE,LA,NÓMINA)'',30,09,''SEP'',2004,16.00,16.88,16.24,15.76)')
Server: Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'as'.



Código:
INSERT INTO OpenQuery(SAP,'Select COD_IND,DIRECCION,DESCRIPCION,DIA,MES,NOMBRE_MES,ANO,STANDARD,MALO,REGULAR,BUENO
from zIndicador') as  zIndicador values  ('8,''OPERACIONES'',''HORAS,EXTRAS,(%,DE,LA,NÓMINA)'',30,09,''SEP'',2004,16.00,16.88,16.24,15.76)')
Server: Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'as'.



Código:
INSERT INTO OpenQuery(SAP,'Select * from zIndicador') 
as  zIndicador values  ('8,''OPERACIONES'',''HORAS,EXTRAS,(%,DE,LA,NÓMINA)'',30,09,''SEP'',2004,16.00,16.88,16.24,15.76)')
Server: Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'as'.

Yo creo que estamos más cerca de la solución, pero aún no caigo que le está faltando ?
__________________
.::RsOfT::.
--El que se aferra a lo conocido, nunca conocerá lo desconocido--
--Es intentando lo imposible como se realiza lo posible--
--Es de pésimo gusto contentarse con algo mediocre cuando lo excelente está a nuestro alcance--