title: SQL Server CE: Suppress modifications of database file?
body: <p>we have an application that has a local SQL Server CE database file. When we open the database, but don't do any changes to it, the database file is changed anyway:</p>
  
  <pre><code>using (var connection = new SqlCeConnection("Data Source='data.sdf';File Mode='Shared Read';Encrypt=FALSE;LCID=1033"))
  {
      connection.Open();
      using (var context = new DataContext(connection))
      {
      }
  }
  </code></pre>
  
  <p>This changes some bytes at the very beginning of the sdf-file.</p>
  
  <p>Is there any way to prevent this?</p>