July 18, 2020 at 3:29 am
I am trying to get file access to copy mdf file from DATA folder on dead computer. I am able to mount the HDD successfully as an external drive on another computer but despite being admin with full permissions am unable to get inside of sql server 2012 DATA folder. Error message says I do not have read permission. Same issue on newly installed 2012 instance freshly installed on new computer where I want to copy to. How can I get access?
July 18, 2020 at 4:16 pm
Have you tried taking ownership of the folder - and enabling inheritance?
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
July 18, 2020 at 10:58 pm
PS D:\program files\Microsoft SQL Server-2\MSSQL11.ROMEXIS\MSSQL\DATA> get-acl .\Romexis_db.mdf | FL
Path : Microsoft.PowerShell.Core\FileSystem::D:\program files\Microsoft SQL
Server-2\MSSQL11.ROMEXIS\MSSQL\DATA\Romexis_db.mdf
Owner : BUILTIN\Administrators
Group : OFFICE-PC3\jack
Access : BUILTIN\Administrators Allow FullControl
NT AUTHORITY\SYSTEM Allow FullControl
NT SERVICE\MSSQL$ROMEXIS Allow FullControl
Audit :
Sddl : O:BAG:S-1-5-21-2033574492-82274976-293738974-1006D:AI(A;ID;FA;;;BA)(A;ID;FA;;;SY)(A;ID;FA;;;S-1-5-80-139646859
8-75167229-630969873-3559538447-1635215798)
CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'D:\Program Files\Microsoft SQL Server-2\MSSQL11.ROMEXIS\MSSQL\DATA\Romexis_db.mdf'. (.Net SqlClient Data Provider)
July 19, 2020 at 2:52 pm
This isn't a SQL Server issue - looks like you have some Windows issues on that system.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
July 19, 2020 at 8:23 pm
Did you try running SSMS as admin, too?
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy