27/09/2018
Sử dụng đoạn code mẫu sau để đọc thông tin từ bảng trong CSDL MS Access:
using System.Data.OleDb;
Đọc một bảng từ CSDL Access:

            string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Data.mdb;Persist Security Info=True; Jet OLEDB:Database Password=;";
            OleDbConnection Conn = new OleDbConnection(strConn);
            string strQuery = "select * from tbl_Test order by ID desc";
            OleDbCommand command = new OleDbCommand(strQuery, Conn);

            /* Open connection */
            Conn.Open();

            /* Run query */
            OleDbDataReader reader = command.ExecuteReader();
            string str;
            reader.Read();
            while (reader.HasRows)
            {
               
                try
                {
                    str = reader.GetString(0).ToString();
                    MessageBox.Show(str);
                }
                catch (Exception ex)
                {
                    break;
                }

                reader.Read();
            }