Visualizzazione dei risultati da 1 a 8 su 8

Discussione: errore update

  1. #1

    errore update

    ADODB.Recordset error '800a0cb3'

    Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.

    /sito2/link_go.asp, line 182


    codice

    codice:
    rs("click") = rs("click") +1
    rs.update
    response.Redirect(rs("link"))

  2. #2
    Utente di HTML.it L'avatar di 99eros9
    Registrato dal
    Jan 2003
    Messaggi
    2,637
    assegna i permessi di scrittura nella tabella del database
    Tala är silver men tiga är guld!
    Pubblica il tuo curriculum
    Segnala il tuo sito
    Ancl

  3. #3
    ci sono. non è questo il problema

  4. #4
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Posta la pagina.
    Come apri il recordset?

    Roby

  5. #5
    codice:
    <%
    Response.Expires = 0
    id=request("id")
    
    Set Conn = Server.CreateObject("ADODB.Connection")
    Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};" &_
    "DBQ="& Server.MapPath("/mdb-database/auriga.mdb")
    sql = "SELECT * FROM link where id="& id
    Set Rs = Conn.Execute(sql)
    %>
                              
                              Nome: 
                              <%=rs("nome")%>
                              </p>
                            
    
    Stai per uscire dal sito Auriga. 
    
                              [b]                          
                              <%
    
    rs("click") = rs("click") +1
    rs.update
    response.Redirect(rs("link"))
    Rs.Close 
    Set Rs = Nothing
    Conn.Close
    Set Conn = Nothing
    
    %>

  6. #6
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    codice:
    <%
    Response.Expires = 0
    id=request("id")
    
    Set Conn = Server.CreateObject("ADODB.Connection")
    Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};" &_
    "DBQ="& Server.MapPath("/mdb-database/auriga.mdb")
    sql = "SELECT link FROM link where id="& id
    Set Rs = Conn.Execute(sql)
    link = rs("link")
    Rs.Close 
    Set Rs = Nothing
    
    sql = "UPDATE link set click = click + 1 where id="& id
    Conn.Execute(sql)
    Conn.Close
    Set Conn = Nothing
    
    response.Redirect(link)
    %>
    Roby

  7. #7
    grazie mille. ma è con win2003 che non funge vero?
    perchè su un altro server con win 2000 funzione bene

  8. #8

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.