S
sonnichjensen
Hi
I have this:
OleDbConnection con = new OleDbConnection();
string database = "C:\\private\\tech\\sonich.mdb";
string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + database + ";";
// this is the part I dont like - I use a very specific driver, which can cause problems - what would you suggest to use?
// I am still somewhat new to C#, so.....
con.ConnectionString = connectionString;
con.Open();
// get data from DB
string sCommand = "SELECT * from workinghours";
//sCommand += " order by record_time";
OleDbCommand com2 = new OleDbCommand(sCommand, con);
OleDbDataReader dr2 = com2.ExecuteReader();
I have this:
OleDbConnection con = new OleDbConnection();
string database = "C:\\private\\tech\\sonich.mdb";
string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + database + ";";
// this is the part I dont like - I use a very specific driver, which can cause problems - what would you suggest to use?
// I am still somewhat new to C#, so.....
con.ConnectionString = connectionString;
con.Open();
// get data from DB
string sCommand = "SELECT * from workinghours";
//sCommand += " order by record_time";
OleDbCommand com2 = new OleDbCommand(sCommand, con);
OleDbDataReader dr2 = com2.ExecuteReader();