November 5, 2012 at 4:58 am
I TRIED TO ATTACH A DATABASE CREATED IN SQLSERVER_2000 INTO SQLSERVER_2008. BUT THE FOLLOWING ERROR MESSAGE APPEARED.
----------------------------------------------------------------
Msg 5120, Level 16, State 101, Line 1
Unable to open the physical file "F:\Projects\Data\Geekay\PMS0001_Data.MDF". Operating system error 5: "5(failed to retrieve text for this error. Reason: 15105)".
----------------------------------------------------------------
PLEASE HELP ME.
REGARDS,
PRASANTH
November 5, 2012 at 5:01 am
OS Error 5 is access denied, ensure that the account running SQL has the nessesary permission to the directory
November 5, 2012 at 5:23 am
i see that error in other posts a lot because people place the mdf in their MyDocuments folder or on their desktop, which all have restricted access, and the service account doesn't have access to places like C:\Users\SpecificUser\Desktop for example.
move the file to a non-private directory, like c:\Data or something first, and see if that fixes the issue for you.
Lowell
November 6, 2012 at 8:08 pm
I have seen this kind of behavior when i detach as someone and try to attach as someone else, also permission would be to a machine\user and machine name could be wrong.
wherever the mdf/ldf is located, go to the properties of the file, edit permissions and either inherit permission from parent or add yourself or the user who is trying to attach.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply