Solved

Cant reattach a database to original server

Posted on 2013-02-07
1
275 Views
Last Modified: 2013-02-07
I detached a database from the sql server and am getting the following error when I point to the file to reattach it:

Failed to retrieve data for this request.  An exception occurred while executing a Transact-SQL statement or batch (Microsoft.qlServer.ConnectionInfo)
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 'D:\SQL\NIAHISTORIAN_plantdatabase.mdf.'  (Microsoft SQL Server error 5123)

Can anyone help?
0
Comment
Question by:cjacl
1 Comment
 

Accepted Solution

by:
cjacl earned 0 total points
Comment Utility
I found my own answer.  I changed the security on both the .mdf and .ldf to allow 'everyone' full permission.  Was able to reattach the database successfully.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now