Coding Forums

Web development and Application development forums. Seek solution from Experts at Coding-Forum. An Ad-Revenue sharing forum.
Welcome Guest Search | Active Topics | Members | Log In | Register

Coding Forum » Web based Development forums » ASP.Net-ASP » Cannot update. Database or object is read-only. (ASP-Access)
Cannot update. Database or object is read-only. (ASP-Access) Options
sweetjos
Posted: Friday, March 12, 2010 4:59:09 AM
Rank: Newbie
Groups: Member

Joined: 3/12/2010
Posts: 1
Points: 3
Location: India


Recently I got this error.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/Jose/add.asp, line 21

Browser Type:
Opera/9.80 (Windows NT 5.1; U; en) Presto/2.5.22 Version/10.50

Page:
GET /Jose/add.asp
My code is as follows.....

<%@ Language=VBScript %>
<% Response.Buffer = true %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
Dim rs

Set rs = Server.CreateObject ("ADODB.Recordset")
rs.CursorType = 2
rs.LockType = 3
rs.Open "register", "DSN=Registration"


rs.AddNew

rs("Name") = Request.Form ("name")
rs("Age") = Request.Form ("age")
rs.Update


rs.Close
set rs = nothing
Response.write("Updated")
%>
<P>&nbsp;</P>

</BODY>
</HTML>
Sponsor
Posted: Friday, March 12, 2010 4:59:09 AM
Users browsing this topic
Guest

Coding Forum » Web based Development forums » ASP.Net-ASP » Cannot update. Database or object is read-only. (ASP-Access)

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

This page was generated in 0.022 seconds.

Powered by YAF. Theme is derived from Dating forums.
Copyright 2008 Coding Forum