using System; using System.Data; using System.Data.Odbc; class Program { static void Main(string[] args) { using (OdbcConnection conn = new OdbcConnection( "Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\\Northwind.mdb;Uid=Admin;Pwd=;")) { string query = "SELECT * FROM Customers"; OdbcDataAdapter adapter = new OdbcDataAdapter(query, conn); DataSet ds = new DataSet(); adapter.Fill(ds, "Customers"); foreach (DataRow row in ds.Tables["Customers"].Rows) { Console.WriteLine(row["CustomerID"] + "\t" + row["CompanyName"]); } } } }This code retrieves all the rows from the "Customers" table in the Northwind.mdb database and displays the CustomerID and CompanyName fields for each row. The package library for the System.Data.Odbc namespace is the .NET Framework Class Library.