title: SQL server won't open DB created by Visual Studio
body: <p>I've built an ASP.Net site in Visual Studio, and created the DB inside it (the .mdf file is in the APP_data folder).</p>
  
  <p>Now, when I want to deploy in the customer site, I think about maintaining the DB without open Visual Studio, and by using the SQL Server Express tools (back up etc.).</p>
  
  <p>I've searched how to do this, and learned that I should attach the .mdf file to sql server.</p>
  
  <p>I've tried to do this and failed! </p>
  
  <p>The error is: <em>Unable to open the physical file "&lt; .mdf >". Operating system error 5: "5(failed to retrieve text for this error. Reason: 15105)". (Microsoft SQL Server, Error: 5120)</em></p>
  
  <p>Google didn't helped me to solve the problem.</p>
  
  <p>Now I have 2 options:
  1. To give up and deploy the site in the current situation where the DB is an .mdf file and ASP.Net can connect to it by the SQL server express compact (in the proccess).</p>
  
  <ol start="2">
  <li>To extract all the data (I need to think how...)  and import it to new DB, this time in SQL Server DB.</li>
  </ol>
  
  <p>Wat would you recommend doing?</p>
  
  <p>Thank you in advance. </p>