OleDbConnection con; // create connection OleDbCommand com; // create command OleDbDataReader dr; //Dataread for read data from database con = new OleDbConnection("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = D:\\mydb.mdb"); com = new OleDbCommand("Select * from Table1",con); con.Open(); // open the coinnection dr = com.ExecuteReader();