title: How to open connection with Microsoft Access database in C#
body: <p>I'm using Microsoft Access to create my database. Here's my code:</p>
  
  <pre><code>static string Constr = "Provider=Microsoft.Jet.OLEDB.4.0;" 
                       + "Data Source = MyData.accdb";
  OleDbConnection Conn = new OleDbConnection(Constr);
  DataSet DataSet1 = new DataSet();
  string SQLstr = "Select * from Tabel";
  OleDbDataAdapter DataAdapter1;
  Conn.Open();
  </code></pre>
  
  <p>I'm getting this exception:</p>
  
  <blockquote>
    <p>An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll</p>
    
    <p>Additional information: Unrecognized database format</p>
  </blockquote>