18

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?

Oliver Salzburg
  • 86,445
  • 63
  • 260
  • 306
AaronSieb
  • 343
  • 2
  • 4
  • 11

2 Answers2

19

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 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
  • 380
  • 2
  • 5
  • 11
  • 5
    Another 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 Feb 15 '17 at 02:25
8

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

Mike Walsh
  • 153
  • 3
  • 7
  • Could you explain how you discovered that those permissions were needed? – Tamara Wijsman Dec 05 '11 at 13:46
  • 1
    This page on [sqlservercentral](http://www.sqlservercentral.com/Forums/Topic461842-146-1.aspx#bm461877). 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 Dec 06 '11 at 01:05
  • 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](http://msdn.microsoft.com/en-us/library/bb283235.aspx) suggest that you don't change the "run as" account away from Network Service. – Reboog711 Oct 08 '14 at 13:05