title: Database .sdf File Not Found
body: <p>I am developing an application on Win 6 sdk with SQL Server CE for smart devices.</p>
  
  <p>Problem is it throws an error while opening the SQL Server CE connection
  it says </p>
  
  <blockquote>
    <p>The path is not valid. Check the directory for the database. [ Path = Data Source=.\Database\SFAHabib.sdf ]</p>
  </blockquote>
  
  <p>My connection string:</p>
  
  <p><a href="https://i.stack.imgur.com/UuMqH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UuMqH.png" alt="I ve tried full path too.."></a></p>
  
  <p><a href="https://i.stack.imgur.com/rkbBE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rkbBE.png" alt="Here is my function where iam opening the connection"></a></p>