主题:无法从指定的数据表中删除
帮我看看这个是什么错误,是数据库本身的还是其它的啊?
<%
Set tqconn = Server.CreateObject("ADODB.Connection")
'Strconn="DRIVER={Microsoft Access Driver (*.mdb)}; "
'Strconn=Strconn & "DBQ=" & Server.MapPath("tqzhigao.mdb")
cs="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
tqconn.connectionstring=cs & Server.MapPath("tqzhigao.mdb")
tqconn.Open Strconn
set tqrs=server.CreateObject("adodb.recordset")
sqlstr="delete from xiaozhangxinxiang where id="&(request("id"))
tqconn.execute(sqlstr)
'tqrs.open sqlstr,tqconn,1,1
'tqrs.execute(sqlstr)
tqrs.close
set tqrs=nothing
tqconn.close
set qtconn=nothing
response.Redirect("xiaozhangchakan.asp")
%>
出现这个错误:错误类型:
Microsoft JET Database Engine (0x80004005)
无法从指定的数据表中删除。
/tq/shujuku/xiaozhangdel.asp, 第 20 行
<%
Set tqconn = Server.CreateObject("ADODB.Connection")
'Strconn="DRIVER={Microsoft Access Driver (*.mdb)}; "
'Strconn=Strconn & "DBQ=" & Server.MapPath("tqzhigao.mdb")
cs="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
tqconn.connectionstring=cs & Server.MapPath("tqzhigao.mdb")
tqconn.Open Strconn
set tqrs=server.CreateObject("adodb.recordset")
sqlstr="delete from xiaozhangxinxiang where id="&(request("id"))
tqconn.execute(sqlstr)
'tqrs.open sqlstr,tqconn,1,1
'tqrs.execute(sqlstr)
tqrs.close
set tqrs=nothing
tqconn.close
set qtconn=nothing
response.Redirect("xiaozhangchakan.asp")
%>
出现这个错误:错误类型:
Microsoft JET Database Engine (0x80004005)
无法从指定的数据表中删除。
/tq/shujuku/xiaozhangdel.asp, 第 20 行