title: Create .mdf/.sdf database dynamically
body: <p>How can I with "code" create a new .mdf/.sdf database?</p>
  
  <p>I've tried this:
  <a href="http://support.microsoft.com/kb/307283" rel="noreferrer">http://support.microsoft.com/kb/307283</a></p>
  
  <p>All it does is fail on the ConnectionString. Since I have no connection to a file that exists before I create it, how can I only connect to the SQL Express Server just to create a mdf/sdf database?</p>
  
  <p>I want to be able to just connect to the server and create the file, from there it probably will be easier to create the tables and such.</p>
  
  <p>Any suggestions?</p>