Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

SQL Server 2008 EXPRESS Error attaching database

Avatar of AJS_Developer
AJS_Developer asked on
Microsoft SQL ServerMicrosoft SQL Server 2008
2 Comments1 Solution912 ViewsLast Modified:

I recently formatted my HDD and installed Windows 7. Then I re-installed SQL Server 2008 Express. Then I went to attach a database which I had detatched before formatting my HDD. I now get an error:

Unable to open the physical file "<file location>". Operating system error 5: "5(failed to retrieve text for this error. Reason: 15105)". (Microsoft SQL Server, Error: 5120)

After I got the error I tried:

Running the SQL Server service with the NETWORK SERVICE, LOCAL SERVICE and my own personal log ons, all of which I made sure had full control privileges of the file.

Logging on to SQL Server Management Studio with the SA account before attempting the attach, which definitely uses the SYSADMIN role.

None of these worked.


Thanks in advance!
Avatar of Dustin_Loftis
Dustin_LoftisFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers