Ciao a tutti,
sto cercando di scrivere in un database SQL, ma mi da sempre una segnalazione di errore:
Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype.
La linea a cui si ferma è rp.addnew. Il database è attualmente vuoto.
Vi riporto il codice:
<%
Session("StrConnDB") = ...
set objConnDB = Server.CreateObject("ADODB.Connection")
set rp = Server.CreateObject("ADODB.Recordset")
objConnDB.Open Session("StrConnDB")
queryp = "SELECT * FROM PB_PROBLEM2"
rp.Open queryp, objConnDB, 3,3
dim strNome
dim strCognome
dim strTelefono
dim strUfficio
dim strCat
dim strComp
dim strMod
dim strGruppo
dim strDescrizione
dim strStato
dim strPriorita
strNome = Request.Form("nome")
strCognome = Request.Form("cognome")
strTelefono = Request.Form("telefono")
strUfficio = Request.form("ufficio")
strCat = Request.Form("categoria")
strComp = Request.Form("componente")
strMod = Request.Form("modulo")
strDescrizione = Request.Form("descrizione")
strStato = "01"
strPriorita = "01"
rp.addnew
rp("NOME") = strNome
rp("COGNOME") = strCognome
rp("NUM_TELEFONO") = strTelefono
rp("ID_CATEGORIA") = strCat
rp("ID_COMPONENTE") = strComp
rp("ID_MODULO") = strMod
rp("ID_GRUPPO") = strGruppo
rp("DESCRIZIONE") = strDescrizione
rp("ID_STATO") = strStato
rp("ID_PRIORITA") = strPriorita
rp.update
rp.close
set rp = Nothing
objConnDB.close
set objConnDB = Nothing
%>