高分求解答!!!在线等===========,高手来帮忙!!!
代码:
<%
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
请高人帮我解答一下,在此感谢!!
<%
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
请高人帮我解答一下,在此感谢!!
...全文
相关推荐
raw文件如何打开.docx
raw文件如何打开
05-Java通过Executors提供四种线程池
Java通过Executors提供四种线程池,分别为: 1. newCachedThreadPool创建一个可缓存线程池,如果线程池长度超过处理需要,可灵活回收空闲线程,若无可回收,则新建线程。 2. newFixedThreadPool 创建一个定长线程池,可控制线程最大并发数,超出的线程会在队列中等待。 3. newScheduledThreadPool 创建一个定长线程池,支持定时及周
Open_Freely—打开100多种格式文件
一个软件聚合可以打开100种文件格式,常用的简单软件都可以实现了
自己动手修复U盘.docx
自己动手修复U盘.docx
文件格式系列图标下载
文件格式系列图标下载提供10张尺寸为128x128像素的PNG和ICO格式文件格式系列图标下载。


