Scusate sto cercando di connettermi ad un file excel sul server ed ho scritto così:
codice:
PercorsoXLS = Server.MapPath(NomeFile)

		    
      Set RS = Server.CreateObject("ADODB.Recordset")
      Rs.Open "SELECT * from [DATI$]", "DRIVER=Microsoft Excel Driver (*.xls); DBQ=" & PercorsoXLS
perchè restituisce:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E37)
[Microsoft][ODBC Excel Driver] The Microsoft Jet database engine could not find the object 'DATI$'. Make sure the object exists and that you spell its name and the path name correctly.
PercorsoXLS si valorizza correttamente:
codice:
D:\inetpub\wwwroot\sito\esempi\modello.xls