title: Why do I get a permission error when connecting to SQL Server from Visual Studio?
body: <p>I have SQL Server 2005 SP4 Express, when I try to establish connection from VS2010 to my database, I get a error:</p>
  
  <blockquote>
    <p>You don't have permission to open this file</p>
    
    <p>Contact the file owner or an administrator to obtain permission.</p>
  </blockquote>
  
  <p>I am using windows authentication and I am the only user.</p>
  
  <p>Please help me out to overcome this error.</p>
  
  <p>Also sometimes, it shows file is already open</p>