title: Where is the SQL Server Compact "repair utility?"
body: <p>I have used C# <code>System.Data.SqlServerCe</code> version 3.5.1.0 to create a <code>.SDF</code> database file. On opening the connection after creation, I sometimes receive the following error: </p>
  
  <blockquote>
    <p>The database file may be corrupted. Run the repair utility to check
    the database file. [ Database name = \?\C:\SomeDatabase.sdf ]</p>
  </blockquote>
  
  <p>Where is the "repair utility?" How do we use it?</p>
  
  <p>I have searched Google and StackOverflow for answers:</p>
  
  <ul>
  <li>SQL Server Compact repair utility</li>
  <li>SDF repair utility</li>
  </ul>
  
  <p>This <a href="http://technet.microsoft.com/en-us/library/ms172420.aspx" rel="noreferrer">MSDN article</a> talks about doing it programmatically. Is there a command line method?</p>