Solved

Cant reattach a database to original server

Posted on 2013-02-07
1
276 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
ID: 38865501
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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

17 Experts available now in Live!

Get 1:1 Help Now