|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Member
Iscritto dal: Feb 2002
Città: Varese
Messaggi: 126
|
[ASP] Problema puntamento a database
Ho scaricato uno script per creare un'area solo membri nel mio sito.
Nella mia ignoranza di asp, non riesco a configurare il collegamento al database e le pagine mi danno errore Microsoft JET Database Engine error '80004005' 'C:\deep-purple.it\mdb-database\site.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. /membersarea/dbconnection.inc, line 6 (il path che riporta è solo il risultato di un mio erroneo tentativo) il file dbconnection.inc è questo: <% Set adoCon = Server.CreateObject("ADODB.Connection") src = "indirizzo database" sConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & src adoCon.Open sConnStr 'Set an active connection to the Connection object using DSN 'adoCon.Open "DSN=ASPLOGIN" %> Considerando che il file si trova nella cartella "membersarea" e il database nella cartella "mdb-database", entrambe nella cartella principale del sito (cartella remota "deep-purple.it"), con che sintassi dovrei scrivere l'indirizzo del database? grazie mille
__________________
DEEP PURPLE ITALIA SITO E FAN CLUB ITALIANO:http://www.deep-purple.it "Non studio non lavoro non guardo la tv, non vado al cinema non faccio sport" G.L.F. Powerbook G4 15", 512 ram, SD, HD 80gb 5400 rpm. |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Server.MapPath("/membersarea/mdb-database/") + "nomedb.mdb"
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 12:25.



















