title: How to migrate SQL Server CE to SQL Server 2012 Express from C# code
body: <p>Currently, our application uses SQL Server CE as our database. We decided to move forward (correct me if I am wrong) to SQL Server 2012 Express for scale and performance reasons.</p>
  
  <p>My question: we need to migrate the database from SQL Server CE to 2012 Express with all SB attributes (schema, indexes, foreign keys, Data ...)</p>
  
  <p>This migration should be performed in an upgrade process which handle in C# code.</p>
  
  <p>How can we do it?</p>