其他文件都可以改 就是ACCESS文件不能覆盖 在等 谁告诉我

hawl2004 2005-06-20 05:28:15
其他文件都可以改 就是ACCESS文件不能覆盖 谁告诉我怎么回事(自己单独租用的服务器)用CUTEFUP 7。1上传的

服务器提示
Request denied.
Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation
...全文
135 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
位流 2005-06-20
  • 打赏
  • 举报
回复
呵呵,有可能写的程序和我的想法类似。我给你看看我的代码。

<%
option explicit
dim conn, dbname
set conn = nothing
dbname = "db.asp.mdb"
dim maintain '维护
maintain = true
sub openconn
'on error resume next
if maintain then
set conn = createobject("adodb.connection")
'conn.connectionstring = "Driver={Microsoft Access Driver (*.mdb) };dbq=" & server.MapPath(dbname)
conn.connectionstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath(dbname)
conn.open
if err.number>0 then
set conn = nothing
response.write "数据库错误"
response.end
end if
if isobject(application("conn")) then
application.Lock
set application("conn") = nothing
application.UnLock
end if
else
dim isobj
if isobject(application("conn")) then
if not application("conn") is nothing then
set conn = application("conn")
isobj = true
else
isobj = false
end if
else
isobj = false
end if
if not isobj then
set conn = createobject("adodb.connection")
'conn.connectionstring = "Driver={Microsoft Access Driver (*.mdb) };dbq=" & server.MapPath(dbname)
conn.connectionstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath(dbname)
conn.open
if err.number>0 then
set conn = nothing
response.write "数据库错误"
response.end
end if
application.lock
set application("conn") = conn
application.unlock
end if
end if
end sub
openconn
sub closeconn
if not maintain then
exit sub
end if
if not conn is nothing then
conn.close
set conn = nothing
end if
end sub
%>
zhangxian_gege 2005-06-20
  • 打赏
  • 举报
回复
换一个上传的软件工具.或是向空间那边的公司反映情况
wangwm 2005-06-20
  • 打赏
  • 举报
回复
ACCESS数据库在打开的情况下,是不能覆盖的
life360 2005-06-20
  • 打赏
  • 举报
回复
数据库被锁死了,改一下名字传上去就可以了
life360 2005-06-20
  • 打赏
  • 举报
回复
数据库被缩死了

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧