ASP“操作必须使用一个可更新的查询”问题!
错误提示:
Microsoft VBScript 编译器错误 错误 '800a03f6 '
缺少 'End '
/iisHelp/common/500-100.asp,行242
Microsoft JET Database Engine 错误 '80004005 '
操作必须使用一个可更新的查询。
/housefree/house/liuchen_detail.asp,行16
liuchen_detail.asp内容:
<!--#include file= "../inc/conn.asp "-->
<!--#include file= "../inc/getPartStrAndBytesLen.asp " -->
<!--#include file= "../inc/onlinecount.asp "-->
<!--#include file= "../top.asp "-->
<%OpenDataConn
newsid=RtnReplaceInt(trim(request( "newsid ")),0)
set rs=server.createobject( "adodb.recordset ")
sql= "select * from news where newsid= "&newsid& " "
rs.open sql,conn,1,1
if rs.eof then
response.write "找不到该信息,该信息已能已被删除! "
response.end
end if
if not rs.eof then
title=rs( "topic ")
conn.execute "update news set hit=hit+1 where newsid= "&newsid& " "
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<HTML> <HEAD> <TITLE> <%=title%> - <%=homepage_title%> </TITLE>
<META http-equiv=Content-Type content= "text/html; charset=gb2312 ">
<LINK
href= "../img/css.css " type=text/css rel=stylesheet>
<META content= "MSHTML 6.00.3790.2706 " name=GENERATOR> </HEAD>
<BODY class=bg1 text=#000000 bgColor=#ffffff leftMargin=0 topMargin=1>
<TABLE height=28 cellSpacing=0 cellPadding=0 width=980 align=center
background=../img/headbg4.gif border=0>
<TBODY>
<TR>
<TD align=right width=35>
<IMG height=13 src= "../img/headarrow.gif "
width=17> </TD>
<TD align=middle width=10> </TD>
<TD class=TD_Place width=935> 您现在的位置: <a href= "../index.asp "> <font color= "#FFFFFF "> <%=homepage_title%> </font> </a> >>
<a href= "liuchen.asp "> <font color= "#FFFFFF "> 购房指南 </font> </a> >> </font> <FONT color=#ffffff> 购房须知 </TD> </TR> </TBODY> </TABLE>
<TABLE height=7 cellSpacing=0 cellPadding=0 width=980 align=center
background=../img/headbg5.gif border=0>
<TBODY>
<TR>
<TD> </TD> </TR> </TBODY> </TABLE>
<div align= "center ">
<TABLE height=980 cellSpacing=0 cellPadding=0 width=970 border=0>
<TBODY>
<TR>
<TD vAlign=top width=259 height=733 rowspan= "2 ">
<TABLE class=out3s_green height= "100% " cellSpacing=0 cellPadding=0
width=255 bgColor=#7cb721 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width= "75% " align=center
border=0>
<TBODY>
<TR>
<TD colspan= "2 ">
..............................
.............................
.....................
<!--#include file= "../end.asp "-->
</BODY> </HTML>
[解决办法]
你的数据库肯定是access的,因为是文本数据库,所以你必须给数据库文件设置windows访问权限,最简单的就是给access 文件 everyone可编辑权限
[解决办法]
数据库文件的安全性的权限问题。
一般我就设置成everyone完全控制,比较方便。
首先
进入文件夹选项 然后点查看
把那个 “使用简单文件共享” 的那项的钩钩去掉(默认是打钩的)
右键你的文件夹
属性(会多出一个叫“安全 "的选项)
你把在安全区中添加上 everyone这个属性 就可以了
[解决办法]
选中数据库文件/属性/安全
添加everyone
XP系统如果没有安全这个选项可在文件夹选项/查看/使用简单文件共享/把勾去掉~
2000或其它系统参考以上~
[解决办法]
有两种可能:1、可能是你的数据库处于只读状态;2如果您的磁盘分区位NTFS格式可能IIS用户对该数据库文件没有写入权限
