vmadiaz06 de Febrero del 2004
PreguntaHola 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
