打开dbf数据库的问题!!
ddydy 2003-01-23 12:51:55 /test/db/ 目录下放了一个dbf文件 1.dbf
数据库链接函数如下:
Function CreateDbfRecordset()
dim Driver,SourceType,DBPath
Set dbfconn = Server.CreateObject("ADODB.Connection")
Driver = "Driver={Microsoft Visual FoxPro Driver};"
SourceType = "SourceType=DBF;"
DBPath = "SourceDB=" & Server.MapPath( "/test/db/" )
dbfconn.Open Driver & SourceType & DBPath
End Function
调用:
CreateDbfRecordset()
set rs=server.CreateObject("adodb.recordset")
rs.Open dbfconn,"select * from 1.dbf"
出错提示:
ADODB.Recordset 错误 '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/test/index.asp,行6