Ask a Question related to ASP Database, Design and Development.
-
Ray P. #1
Operation must use an updateable query Error
Group,
On a W2K3 / IIS 6.0 Server, we have a Web Site reading
an .mdb fine. When it tries to save, it generates the
following error:
Microsoft OLE DB Provider for ODBC Drivers
error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Operation must
use an updateable query.
/web/version_1.9/admin/updateinfo.asp, line 24
I've search high and low in TechNet.
I did implement this item with no help.
[url]http://support.microsoft.com/default.aspx?scid=kb;en-[/url]
us;830977
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
dim Message,ttl
Message = request.form("bodytxt")
Message = Replace(Message,"""","""",1,-1,vbTextCompare)
Message = Replace(Message,"'","''",1,-1,vbTextCompare)
ttl = request.form("hometitle")
ttl = Replace(ttl,"""","""",1,-1,vbTextCompare)
ttl = Replace(ttl,"'","''",1,-1,vbTextCompare)
' Connect to database
set objconn=Server.CreateObject ("ADODB.Connection")
'response.write objconn.mode
'objconn.mode = 3
objconn.open "Driver={Microsoft Access Driver (*.mdb)};
DBQ="& Server.MapPath ("ihldb\ihldb.mdb")
'objconn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source="& Server.MapPath ("ihldb\ihldb.mdb")
' Update Database
sqlstr="UPDATE home SET hometitle='"&ttl&"',
homedesc='"&Message&"',homeimg='noimg' WHERE
homeid="&request.form("infoid")
'response.write sqlstr
Set objrs=objconn.Execute(sqlstr)
response.redirect("admin_index.asp")
%>
Ray P. Guest
-
"Operation must use an updateable query".- after conversion to NTFS
You need to set NTFS permissions for IUSR (which weren't in place, obviously, when using FAT32). Right-click the folder, hit sharing and... -
operation must use updateable query
Hi everyone. I am bulding my site with Dreamweaver (my ASP knowladge is limited), and I am getting the above error while trying to insert a record.... -
Operation must use an updateable query.
This is the error that I get: Operation must use an updateable query. It worked previously before I installed Jet 4.0 SP 8 b/c Access 2003... -
INSERT error :: Updateable query?
I am picking up an error message on a straightforward INSERT - do I need an optimistic-type to get this working....here is is the error: ... -
error '80004005'; Operation must use an updateable query.
Are the users logging in with NT authentication? If so, the users will need the NTFS permissions on the mdb as opposed to the IUSR account. Ray... -
Bob Barrows #2
Re: Operation must use an updateable query Error
Ray P. wrote:
This is not the cause of this particular problem, but you should stop using> Group,
>
> On a W2K3 / IIS 6.0 Server, we have a Web Site reading
> an .mdb fine. When it tries to save, it generates the
> following error:
>
> Microsoft OLE DB Provider for ODBC Drivers
> error '80004005'
>
the obsolete ODBC drivers, using the native Jet OLEDB provider instead. See
here: [url]www.able-consulting.com/ado_conn.htm[/url]
Your answer will very likely be found in one of these articles:> [Microsoft][ODBC Microsoft Access Driver] Operation must
> use an updateable query.
[url]http://www.aspfaq.com/show.asp?id=2062[/url] - updatable cursor
[url]http://www.aspfaq.com/show.asp?id=2009[/url] - 80004005 errors
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
GVaught #3
Re: Operation must use an updateable query Error
Permissions are set incorrect at the server level.
"Ray P." <ray@paganini.com> wrote in message
news:0e8401c3b683$51766330$7d02280a@phx.gbl...> Group,
>
> On a W2K3 / IIS 6.0 Server, we have a Web Site reading
> an .mdb fine. When it tries to save, it generates the
> following error:
>
> Microsoft OLE DB Provider for ODBC Drivers
> error '80004005'
>
> [Microsoft][ODBC Microsoft Access Driver] Operation must
> use an updateable query.
>
> /web/version_1.9/admin/updateinfo.asp, line 24
>
> I've search high and low in TechNet.
> I did implement this item with no help.
>
> [url]http://support.microsoft.com/default.aspx?scid=kb;en-[/url]
> us;830977
>
> Code:
> <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
> <%
> dim Message,ttl
> Message = request.form("bodytxt")
> Message = Replace(Message,"""","""",1,-1,vbTextCompare)
> Message = Replace(Message,"'","''",1,-1,vbTextCompare)
> ttl = request.form("hometitle")
> ttl = Replace(ttl,"""","""",1,-1,vbTextCompare)
> ttl = Replace(ttl,"'","''",1,-1,vbTextCompare)
>
> ' Connect to database
>
> set objconn=Server.CreateObject ("ADODB.Connection")
> 'response.write objconn.mode
> 'objconn.mode = 3
>
> objconn.open "Driver={Microsoft Access Driver (*.mdb)};
> DBQ="& Server.MapPath ("ihldb\ihldb.mdb")
> 'objconn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source="& Server.MapPath ("ihldb\ihldb.mdb")
>
> ' Update Database
>
> sqlstr="UPDATE home SET hometitle='"&ttl&"',
> homedesc='"&Message&"',homeimg='noimg' WHERE
> homeid="&request.form("infoid")
> 'response.write sqlstr
> Set objrs=objconn.Execute(sqlstr)
>
> response.redirect("admin_index.asp")
>
> %>
GVaught Guest



Reply With Quote

