错误提示Microsoft JET Database Engine 错误 '80004005' ,怎么办?
ggg9 2004-10-24 04:12:18 我做了如下一段代码,在某台机子上运行正常,
dim total
set total=server.createobject("adodb.recordset")
sql="select * from total"
total.open sql,conn,1,1
nn=total.recordcount
Set Cmd = Server.CreateObject("ADODB.Command")
Cmd.ActiveConnection = conn
Cmd.CommandText = "delete * from total"
for i=1 to nn
Cmd.Execute
total.movenext
next
total.close
set total=nothing
可是,我换了一台机子后,却总是提示
delete * from total
Microsoft JET Database Engine 错误 '80004005'
无法从指定的数据表中删除。
不知是为什么?另外我还做了一个插入数据的页面,也总是不能插入数据(页面应该没问题,我使用DW一步一步自动生成的),但是如果所有只有select语句的页面也以正确提取数据库的数据,不知为什么?请各位赐教!!!