This's an example of selecting from Access database,you have edit the query and the path of your DB... good lock
using System.Data.SqlClient;
using System.Data.OleDb;
OleDbConnection conn = new OleDbConnection();
String connectionString = @"Provider=Microsoft.JET.OlEDB.4.0;"
+ @"Data Source=E:\DB.mdb";
conn = new OleDbConnection(connectionString);
conn.Open();
string query = "select id,name from Book;";
OleDbCommand command = new OleDbCommand(query, conn);
OleDbDataReader reader = command.ExecuteReader();
try
{
while (reader.Read())
Console.WriteLine(String.Format("{0} {1}", reader[0], reader[1]));
}
finally
{
reader.Close();
conn.Close();
}