Why Is This Read Only Error Coming Up?

Results 1 to 2 of 2

Thread: Why Is This Read Only Error Coming Up?

  1. #1
    K.Zig Guest

    Default Why Is This Read Only Error Coming Up?

    I have a section of code which is to update a database from the results of a form page. I keep getting this error though:<BR>Cannot update. Database or object is read-only. <BR>My code:<BR>&#060;%<BR> ZYourName = Request.Form ("YourName")<BR> ZYourEmail = Request.Form ("YourEmail")<BR><BR> Set Connect = Server.CreateObject("ADODB.Connection")<BR> Connect.Open "mindsite"<BR><BR> Set listing = Server.CreateObject("ADODB.Recordset")<BR> Strquery = ("Select * From mindsite")<BR> listing.Open Strquery, Connect, adOpenDynamic,adLockOptimistic<BR><BR> listing.AddNew<BR> listing("YourName")= ZYourName<BR> listing("YourEmail")= ZYourEmail<BR> listing.Update <BR> listing.Close<BR> set listing=nothing<BR><BR>%&#062;<BR><BR>Any Ideas?<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Why Is This Read Only Error Coming Up?

    The permissions are set to "read only" on the web server.<BR>Your code is fine. either change nt/iis permissions to allow execution on both database and folder, or ask a server admin, or shoot your ISP.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts