I am trying to attach a .mdf file. I used the following code:
CREATE DATABASE Antonio
ON (FILENAME = 'c:\Users\asaponar\Desktop\antonio lon\ION_Data_Archivemarch.mdf')
FOR ATTACH
but I get the following message :
Msg 5133, Level 16, State 1, Line 1 Directory lookup for the file "c:\Users\asaponar\Desktop\antonio lon\ION_Data_Archivemarch.mdf" failed with the operating system error 5(Access is denied.).
For sure the file permissions are right.
Anything else to check please?