Visualizzazione dei risultati da 1 a 2 su 2

Discussione: query da file excel

  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2005
    Messaggi
    2,630

    query da file excel

    Carissimi
    volevo utilizzare questo script per leggere dati da un file excel come query ma mi da un errore.

    codice:
    SQL = "SELECT Nome, Telefono FROM Id"
    strProvider="DRIVER=Microsoft Excel Driver (*.xls); DBQ=" & Server.MapPath ("prova_elenco.xls")
    Set rs = Server.CreateObject("ADODB.recordset")
    rs.Open SQL, strProvider
    
    response.write rs("Nome")
    response.write rs("Telefono")
    Ecco l'errore

    codice:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e37'
    
    [Microsoft][ODBC Excel Driver] The Microsoft Jet database engine could not find the object 'Id'. Make sure the object exists and that you spell its name and the path name correctly.
    Grazie per l'aiuto.
    G.

  2. #2
    Utente di HTML.it
    Registrato dal
    Jul 2005
    Messaggi
    2,630
    Nessun suggerimento??
    Grazie

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.