title: Migrate project from .MDF database to .SDF
body: <p>I ran into a stupid problem. </p>
  
  <p>I started developing a Windows Forms application in C# that must be stand-alone (work with absolutely no installation) and needs a database. Being genius that I am I didn't read too much into it and used SQL Server Express <code>.MDF</code> database. </p>
  
  <p>Now it works perfectly, with Linq and all it's perks (data context, designer and so on) but what I didn't know is that client machine will need SQL Server installed to work with database. My program will be potentially deployed to 200-250 PCs and installing SQL Server on all of those PCs is not an option.</p>
  
  <p>Is there any way to use a SQL Server CE database instead of <code>.MDF</code>? Or will I have to rewrite half the program?</p>