Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/10/2011, 08:26
enriqueyepeztorres
 
Fecha de Ingreso: octubre-2011
Mensajes: 1
Antigüedad: 12 años, 5 meses
Puntos: 0
Pregunta Problema al exportar excell a sq server 2008

Buenos dias, tengo un archivo de excel con 500 registro lo quiero enviar a sql para procesar a informacion, tengo el siguiente query:

insert into Hoja3
SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0;HDR=Yes;Database=C:\WFLContratosde24102011.xls ', 'SELECT * FROM [Hoja3$]')

ELECT * INTO Hoja3 FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\WFLContratosdel24102011.xls', 'SELECT * FROM [Hoja3$]')

mi tabla es Hoja3 y tengo el la informacion en la hoja tres del excel... ,e trae el siguiente error al momento de ejucutar el query

OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" returned message "The Microsoft Jet database engine could not find the object 'Hoja3$'. Make sure the object exists and that you spell its name and the path name correctly.".
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".

agradeceria su ayuda,

gracias