When trying to attach an mdf: "CREATE FILE encountered operating system error 5(failed to retrieve text for this error. Reason: 15105) while attempting to open or create the physical file" This is because SQL server management studio itself needs to be able to read the mdf/ldf files. Often these files only have permissions for the SQL server process. Run SSMS as administrator.