title: How to change .mdb database password by C# code?
body: <p>I want to change my .mdb Database password by C# code. I am using following code for this but some error comes. So please help me.</p>
  
  <blockquote>
    <p>IErrorInfo.GetDescription failed with E_FAIL(0x80004005). This error comes.</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>  OleDbConnection cnn1 = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Jet OLEDB:Database Password=" + pwd + ";Mode=Share Exclusive");
    OleDbCommand cmd1 = new OleDbCommand();
    cnn1.Open();
    cmd1.Connection = cnn1;
  
  
    string Query="ALTER DATABASE PASSWORD &lt;newPassword&gt; " + pwd + "";  
  
    cmd1.CommandText = Query;
    blnSuccess = cmd1.ExecuteNonQuery();
  </code></pre>