title: Cannot install adventureworks 2012 database - Operating system error 5: Access is denied
body: <p>I am trying to install AdventureWorks 2012 database in sql server 2012. I got the mdf file from this link - <a href="http://msftdbprodsamples.codeplex.com/releases/view/93587">http://msftdbprodsamples.codeplex.com/releases/view/93587</a></p>
  
  <p>Here is the name of the file I downloaded - 
  AdventureWorks2012_Database.zip</p>
  
  <p>I am doing all this on a windows 7 64 bit. </p>
  
  <p>I get the error below:</p>
  
  <pre><code>Attach database failed for Server 'SuperPC\SQL2012'.  (Microsoft.SqlServer.Smo)
  
  For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;ProdVer=11.0.2100.60+((SQL11_RTM).120210-1917+)&amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;EvtID=Attach+database+Server&amp;LinkId=20476
  
  ADDITIONAL INFORMATION:
  
  An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
  
  Unable to open the physical file "C:\Databases\AdventureWorks2012_Data.mdf". Operating system error 5: "5(Access is denied.)". (Microsoft SQL Server, Error: 5120)
  
  For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&amp;ProdVer=11.00.2100&amp;EvtSrc=MSSQLServer&amp;EvtID=5120&amp;LinkId=20476
  </code></pre>