SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Location
    bangalore
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    update data using asp

    Hi,
    i upladed my website
    If iam tring to update data to database thro asp coding it is showing error as follows

    Microsoft JET Database Engine error '80040e09'

    Cannot update. Database or object is read-only.

    /preview_post.asp, line 131

    Code:
    Set objRS4 = Server.CreateObject("ADODB.Recordset")
    objRS4.Open "posting_temp",objConn,2,4
    objRS4.AddNew
    objRS4("post_heading_temp")=trim(replace_(request.form"heading"),vbcrlf,"<br>"))
    objRS4("post_comment_temp")=trim(replace(request.form_("comment"),vbcrlf,"<br>"))
    objRS4("post_month_year")= MonthName(iMonth)&year(now)
    objRS4("post_date_temp") = Date()
    objRS4("post_time_temp") = time()
    objRS4.Update
    i think some problem in database connection

    connection code
    Code:
    <%
    Dim objconn
    set objconn=server.createobject("ADODB.connection")
    objconn.connectionstring="PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE="&server.mappath("finre/db_name.mdb")&";"
    objconn.mode=3
    objconn.open
    %>
    please help me to resolve it
    some problem in database folder or database code or update code or object type


    please any pne find out and lat me know
    regards
    sona

  2. #2
    Original Gangster silver trophy Thing's Avatar
    Join Date
    Oct 2000
    Location
    Philadelphia, PA
    Posts
    4,708
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You need to update the folder permissions where your database sits to have read/write permissions for the IUSER account. Here's a nice tutorial to show you how:

    http://www.webwizguide.info/asp/faq/...ermissions.asp


Bookmarks

Posting Permissions

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