高分求解答!!!在线等===========,高手来帮忙!!!

zhoubin5460 zhoubin5460 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
代码:
<%
Function CreateDbfRecordset( dri, sql )
Dim conn,Driver,SourceType,DBPath
'建立Connection 对象
Set conn = Server.CreateObject("ADODB.Connection")
Driver = "Driver={Microsoft Visual FoxPro Driver};"
SourceType = "SourceType=DBF;"
DBPath = "SourceDB=" & Server.MapPath( dri )
'调用Open方法打开数据库
conn.Open Driver & SourceType & DBPath
Set CreateDbfRecordset = Server.CreateObject("ADODB.Recordset")
'打开DBF文件,参数二为Connection对象
CreateDbfRecordset=conn.execute(sql)
End Function

CreateDbfRecordset "zhengshu.dbf","select * from zhengshu"
%>

错误:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e37'

[Microsoft][ODBC Visual FoxPro Driver]File 'zhengshu.dbf' does not exist.

/modules/new_module_16/back/example.asp,行36


请高人帮我解答一下,在此感谢!!
...全文
评论 6
收藏 已收藏
分享
返回顶部
zhoubin5460
ASP 28,401 成员 356,940 内容