title: Error while trying to attach .mdf
body: <p>I was trying to import the database with data from s3 machine to my local machine, for that I have detached the database from s3 machine and copied the database and pasted to local machine at the following path 'D:\Databases\MSSQL\OLTP\Data\Test_AS.mdf'
  Now, When I try to attach this mdf file to SQL server instance, it is showing an error message: </p>
  
  <pre><code>Attach database failed for the server                                                        
  Additional Information :                                                                     
       An exception occurred while executing Transact-SQL statement or batch
  (Microsoft.SqlServer.Connectioninfo)                                                       
           Unable to open the physical file "D:\Databases\MSSQL\OLTP\Data\Test_AS_log " Operating system error 2 : 2(failed to retrieve text for this error.Reason : 15105)"."(Microsoft SQL Server Error : 5120)"
  </code></pre>
  
  <p>SQL Server has the permissions to do so with that location.</p>