B
Burak Gunay
Hello,
I am trying to connect to a visual fox pro table from my asp.net page.
I dragged an odbc connection and set it to a visual fox pro driver file
dsn pointing to "mydocuments" folder.
Here is the connection string
SourceDB=c:\Documents and Settings\bgunay\My
Documents;PWD=;SourceType=DBF;Collate=Machine;Deleted=Yes;BackgroundFetch=Yes;Exclusive=No;Driver=Microsoft
Visual FoxPro Driver;Null=Yes;UID=
I then dragged an odbc command and set it to this connection. I was
then able to see the list of visual fox pro(.dbf) tables in "my
documents" folder. I then set the query to command text to return every
record from the "corp" table.
Then, I executed the command as follows
cnn.Open()
Dim reader As Odbc.OdbcDataReader
reader = OdbcCommand.ExecuteReader()
While reader.Read
Response.Write(reader.Item(0) & "<br>")
End While
It came back with "Corp.dbf does not exist" which is so bizarre since
corp.dbf exists
and is visible when I build the odbc command. But for some reason when
I try to select records from it from the code behind, I get that weird
message.
Any ideas?
Thanks,
Burak
I am trying to connect to a visual fox pro table from my asp.net page.
I dragged an odbc connection and set it to a visual fox pro driver file
dsn pointing to "mydocuments" folder.
Here is the connection string
SourceDB=c:\Documents and Settings\bgunay\My
Documents;PWD=;SourceType=DBF;Collate=Machine;Deleted=Yes;BackgroundFetch=Yes;Exclusive=No;Driver=Microsoft
Visual FoxPro Driver;Null=Yes;UID=
I then dragged an odbc command and set it to this connection. I was
then able to see the list of visual fox pro(.dbf) tables in "my
documents" folder. I then set the query to command text to return every
record from the "corp" table.
Then, I executed the command as follows
cnn.Open()
Dim reader As Odbc.OdbcDataReader
reader = OdbcCommand.ExecuteReader()
While reader.Read
Response.Write(reader.Item(0) & "<br>")
End While
It came back with "Corp.dbf does not exist" which is so bizarre since
corp.dbf exists
and is visible when I build the odbc command. But for some reason when
I try to select records from it from the code behind, I get that weird
message.
Any ideas?
Thanks,
Burak