Accesar a archivos .dbf(Visual Fox Pro) desde ASP
Hola alguien me puede ayudar, que esta mal en este codigo?, tengo los archivos .dbf en el directorio "data"
directorio = server.mappath("./data")
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=Driver={Microsoft Visual FoxPro Driver};UID=;SourceDB=" & directorio & ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"
response.write(oConn.ConnectionString)
oConn.open
sw=0
Set oRs = oConn.Execute ("select * from tblclasifica order by nombre")
While NOT oRS.EOF
sw=sw+1
response.write(oRs("nombre") & "<br>")
wend
me sale el sgte error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e37'
[Microsoft][ODBC Visual FoxPro Driver]File 'tblclasifica.dbf' does not exist.
pero el archivo tblclasifica.dbf si existe en la carpeta data
gracias por su ayuda
directorio = server.mappath("./data")
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Extended Properties=Driver={Microsoft Visual FoxPro Driver};UID=;SourceDB=" & directorio & ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"
response.write(oConn.ConnectionString)
oConn.open
sw=0
Set oRs = oConn.Execute ("select * from tblclasifica order by nombre")
While NOT oRS.EOF
sw=sw+1
response.write(oRs("nombre") & "<br>")
wend
me sale el sgte error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e37'
[Microsoft][ODBC Visual FoxPro Driver]File 'tblclasifica.dbf' does not exist.
pero el archivo tblclasifica.dbf si existe en la carpeta data
gracias por su ayuda
hola, por la fecha en que preguntastes al foro supongo que ya sabes la respuesta. yo tengo el mismo problema con vfp y no se que hacer. serias tan amable de mandarme alguna informacion al respecto. desde ya muchas gracias.