title: SQL Server attaching database: access denied
body: <p>I had created a MDF database file and I just recently reformatted my computer. When I go to attach the database file to SQL Server, I get an "access is denied" error. I looked online and found that others have had a similar problem that was solved by running SQL server as administrator but that didn't work for me. I'm using Windows authenticate, if that helps to understand the problem.</p>
  
  <p>I'm locked out!</p>
  
  <p>Thanks.</p>