Why Can't SQL Server Management Studio Access The "My Documents" Folder in Windows 7?

14

2

I have a database backup located in my Windows 7 Documents folder (C:\Users\Aaron\Documents...), and I'm trying to restore it using SQL Server Management Studio. However, the program is unable to access anything within the Users\Aaron directory using its non-standard file selection dialog, even when run as an Administrator.

I'm brand new to Windows 7, is there some sort of security setting that I need to trigger to give programs access to these files?

AaronSieb

Posted 2009-11-13T03:53:19.143

Reputation: 303

Answers

13

I found more information here:

"To give your SQL Server account access to this folder, we first have to verify the account used to login to SQL Server. Open SQL Server Manager Configuration Manager and navigate to SQL Server Services. Right-click SQL Server (MSSQLSERVER) and select properties. On the Log On tab, you should see where the account to login as is specified."

Once you know the account being used by SQL Server, give that account the needed permissions on your directory.

Jimmy

Posted 2009-11-13T03:53:19.143

Reputation: 318

2Another method for finding the account name is opening Services and scroll down to SQL Server and note the value in the Log On As column – shmup – 2017-02-15T02:25:00.457

6

Try giving the "Network Service" permissions on the folder. Worked for me.

Mike Walsh

Posted 2009-11-13T03:53:19.143

Reputation: 133

This worked for me (Win Server 2008 & SQL Server 2008); but I also fear of the security implications of this. There were five different SQL Server groups; and none of them none of them allowed Management Studio to access the directory. The Microsoft Docs suggest that you don't change the "run as" account away from Network Service.

– Reboog711 – 2014-10-08T13:05:58.120

Could you explain how you discovered that those permissions were needed? – Tamara Wijsman – 2011-12-05T13:46:28.377

1

This page on sqlservercentral. However I didn't seem to have the security group they were talking about so I just added the network service account itself. As I added it to each sub directory SSMS could drill one level further into my user directory. (p.s. not sure what the security implications of doing this are..)

– Mike Walsh – 2011-12-06T01:05:54.373