Visualizzazione dei risultati da 1 a 5 su 5

Discussione: Info..

  1. #1

    Info..

    Salve a tutti, sono un nuovo iscritto al forum di html.
    Qualcuno di voi mi sa dire cos'č una "PATH" ?
    non riesco a configurare un file di connessione asp!

    Ecco l'errore che mi da in rete:
    **********
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'

    [Microsoft][ODBC Microsoft Access Driver] '(unknown)' 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.

    /news/connect.asp, line 15
    **********
    _______________
    Il file locale č questo, quello per la connessione:

    <%
    Set Connect = Server.CreateObject("ADODB.Connection")
    Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=C:\Inetpub\wwwroot\asp_collection\eng \news\db\db.mdb"
    %>

    ---------
    Nella voce dbq=C:\ecc ecc.. provo a cambiargli il percorso, per dove si trova il database.. ma rileva sempre lo stesso errore!
    Qualcuno mi dia una dritta!
    yo!

  2. #2
    a questo indirizzo
    codice:
    C:\Inetpub\wwwroot\asp_collection\eng\news\db\db.mdb
    deve corrispondere un database..se tu vai in risorse del computer ->c:->inetpub->wwwroot->asp_collection->eng->news->db e ci trovi db.mdb allora la PATH (=indirizzo,percorso) č giusta...se il db nun ce sta, č sbagliata...

    altrimenti usa :

    codice:
    Connect.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mapPath("/db/db.mdb")

  3. #3
    ti ringrazio.. ci son riuscito!
    yo!

  4. #4
    SCUSATE... UN ALTRA INFORMAZIONE

    ora, diciamo che al 90 % sono riuscito a configurare iuno script per news..
    Bene, ora, quando provo ad inserire una news nel sito non mi riesce.. dicendomi:

    *************
    Microsoft JET Database Engine error '80040e09'

    Cannot update. Database or object is read-only.

    /news/add/add.asp, line 28
    *************

    Il file locale č questo, e richiama la linea 28 che indico qui sotto:

    <html>



    <%

    ' -----------------------------------------------------------------
    ' Detta script får användas fritt men följande rader skall stå kvar
    ' samt att includebottom-filen får vara orörd.
    ' Ursprungsscript från Webstudio, Tack för fina kurser på nätet!
    ' Omarbetat till nyhets-script av Björn Lindström
    ' -----------------------------------------------------------------
    ' A free news-script from Hogstorps Asp-collection
    ' Please leave the "bottom.inc" and these lines intact
    ' -----------------------------------------------------------------

    Dim admin
    admin = request.form("")
    ' admin passsword is test. Don´t forget ti change it
    if admin = "" then

    Set RecSet = Server.CreateObject("ADODB.Recordset")
    Addera = "SELECT * FROM news"

    RecSet.Open Addera, Connect, adOpenStatic, adLockOptimistic

    *--> 28) RecSet.AddNew

    RecSet("Title") = Request.Form("title")
    RecSet("Name") = Request.Form("name")
    RecSet("Email") = Request.Form("email")
    RecSet("Message") = Replace(Server.HTMLEncode(Request.Form("message")) , chr(13), "
    ", 1)
    RecSet("Date")= date()

    RecSet.Update
    RecSet.Close
    Connect.Close %>

    <font face="verdana" size="2">
    <hr>

    That´s it!

    Send a mail to your webmaster and he will</a>
    put on the main site that you added a news.
    <hr>
    <%
    else
    response.write "Wrong password"
    end if
    %>


    Add more news.

    Back to news.</font>

    </html>

    Ora cosa devo scriverci per modificare quella voce, in modo da far diventare il database in modalitā scrivibile?
    Ringrazio anticipatamente chi leggerā questo problema!
    yo!

  5. #5
    apparte che ti suggerisco di usare strnghe SQL invece di quel metodo, cmq prova a mettere invece di

    codice:
    RecSet.Open Addera, Connect, adOpenStatic, adLockOptimistic
    questo:
    codice:
    RecSet.Open Addera, Connect, 3, 3
    e guarda che tu non abbia aperto il db in locale (specialmente che tu non abbia una delle tabelle aperte in modalita struttura)


    ps: complimenti per i nomi delle varibiali..

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.