G
Guest
Greetings,
I am devleoping a new application in C# which is suppose to perform a look
up of some data from a legacy database locally on the machine. The problem
is that this data is stored in a Foxpro 8.0 DBF file. It seems like my
connection string works, but how do I get access to a specified .dbf file?
// Here is my connection string.
const string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\\MyTestDir\\;Extended Properties=dBASE IV;User ID=Admin;Password=";
// My database connnection
protected OleDbConnection connection = new OleDbConnection();
connection.Open();
// How to get access to a specified dbf file?
// The file is located in C:\MyTestDir\testfile.dbf
// The following connection string does not work?????
const string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\\MyTestDir\\testfile.dbf;Extended Properties=dBASE IV;User
ID=Admin;Password=";
Since I am not familiar at all with fox databases, I have a feeling it is
something simple I have missed. I am currently using visual studio 2005, on
a windows xp sp2 computer.
Thanks for any suggestions!
I am devleoping a new application in C# which is suppose to perform a look
up of some data from a legacy database locally on the machine. The problem
is that this data is stored in a Foxpro 8.0 DBF file. It seems like my
connection string works, but how do I get access to a specified .dbf file?
// Here is my connection string.
const string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\\MyTestDir\\;Extended Properties=dBASE IV;User ID=Admin;Password=";
// My database connnection
protected OleDbConnection connection = new OleDbConnection();
connection.Open();
// How to get access to a specified dbf file?
// The file is located in C:\MyTestDir\testfile.dbf
// The following connection string does not work?????
const string connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\\MyTestDir\\testfile.dbf;Extended Properties=dBASE IV;User
ID=Admin;Password=";
Since I am not familiar at all with fox databases, I have a feeling it is
something simple I have missed. I am currently using visual studio 2005, on
a windows xp sp2 computer.
Thanks for any suggestions!