怎么连接 VFP 数据库?
Set conn = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("logon.dbf")
conn.Open "driver={Microsoft FoxPro VFP Driver (*.dbf)};dbq=" & DBPath
sql = "Select * From key Where Name='" & Name & "' And Password = '" & Password & "'"
Set rs = conn.Execute( sql )
出错:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
/pwd.asp, line 10
怀疑是上面第三行错了,怎么改好?