请大家帮忙:出现了“未指定的错误 ”。要如何解决?谢谢
刚才突然停电了。程序没有作任何的解动,但重启后出现“未指定的错误 ”。我使用修复和压缩数据库的方法还是不行。(Access)
连接数据库代码如下:
dim conn,connstrpvnumindex,dbq,rs,sql
connstrpvnumindex="driver={Microsoft Access Driver (*.mdb)};dbq="&server.MapPath("../data_mobile/mobile_data.mdb")
Set conn = Server.CreateObject("ADODB.Connection")
if err.number<>0 then
err.clear
set conn=nothing
response.write "数据库连接出错."
response.end
else
conn.Open connstrpvnumindex///////////////////////提示此处出错。
if err then
err.clear
set conn=nothing
response.write "数据库连接出错."
response.end
end if
end if