为什么不行???

leech125 2005-06-13 12:21:59
Microsoft JET Database Engine 错误 '80004005'

'c:\windows\system32\test\g.mdb'不是一个有效的路径。 确定路径名称拼写是否正确,以及是否连接到文件存放的服务器。

/test/dbopen.asp,行 3
...全文
42 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
hyma 2005-06-13
  • 打赏
  • 举报
回复
conn.open "provider=microsoft.jet.oledb.4.0;data source="&server.mappath("g/db.mdb")
wangwm 2005-06-13
  • 打赏
  • 举报
回复
dim objConn, objRs
dim strConn, strSQL
dim strDbPath
strDbPath = "c:\windows\system32\test\g.mdb"
strConn= "Provider=Microsoft.Jet.OleDb.4.0;data surce=" & strDbPath
strSQL = "Select * From MyTable"
set objConn = Server.CreateObject("ADODB.Connection")
set objRs = Server.CreateObject("ADODB.RecordSet")
objConn.Open strConn
Set objRs=objConn.Execute(strSQL)
if not objRs.eof then

end if

28,406

社区成员

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

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