title: How to connect to an SQLite(CE) database on a windows mobile phone?
body: <p>I want to make a database for my mobile 6 cellphone app. What I did was in visual studios I went to my project name and right clicked on it, went to add -> add new item -> data -> choose datafile.</p>
  
  <p>It created a database file called "AppDatabase1.sdf"</p>
  
  <p>Now I want to connect to my database but I don't know how what the connection string is since I see no app.config where I normally would expect it to be.</p>
  
  <p>So I just have</p>
  
  <pre><code> SqlCeConnection conn = new SqlCeConnection("Not sure what to put here");
   conn.Open();
  </code></pre>
  
  <p>When I click on the server explorer tab I see my database so I click on it. In the properties section it has something labeled "connection string" however it looks like the path to the actual file and when I run it in the emulator I get an error.</p>
  
  <blockquote>
    <p>"The database file cannot be found.
    Check the path to the database."</p>
  </blockquote>
  
  <p>Thanks</p>