Solved

Cant reattach a database to original server

Posted on 2013-02-07
1
279 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

732 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