SQL Server Backup\Restore - Cannot access the specified path or file
Asked Answered
H

6

6

I've recently changed the default BackupDirectory for a SQL Server 2008 R2 instane in the registry from I:\ to K:\ and since then whenever I try to backup or restore using SSMS I'll get an error

Cannot access the specified path or file

when I browse for the path.

Error from SSMS

It happens to the root and all folders in K:\. If I key in I:\ in the path and browse, there's no such issue. I've replicated the permission on I:\ and later added the service account for SQL and MSSQLSERVER to K:\ with Full Access. I've even tried adding Everyone with Full Access and it still shows the same error. I've googled around and find a lot of similar questions but no working solution for me. I've also tested master.sys.xp_dirtree on K:\ and no error. I've even tried procmon.exe but no indication of what went wrong enter image description here

K:\ is the newly created pool in our SAN allocated for backups only. The SQL Server is part of a Windows 2008 R2 Failover Cluster. Both I:\ and K:\ is configured as SQL Server's cluster resources.

Fyi, I login to SSMS using a SQL Server account, since my machine is not part of the domain. But it was never an issue with I:\ to begin with.

EDIT: There's no error if I backup/restore with T-SQL, meaning the read/write permission for SQL Server for K:\ is correct.

Honolulu answered 30/12, 2013 at 3:34 Comment(2)
sqlcoffee.com/Troubleshooting069.htmAleta
@NagarajS both I:` and K:` are in the dependency of the SQLHonolulu
K
3

I had this issue but realised that I was logging into the server (in SSMS) using SQL authentication. Once I hoped on the box as a local admin and then logged in with windows authentication to SQL server, I could see the files fine.

Kristofor answered 17/1, 2019 at 13:13 Comment(0)
A
2

I has same issue and found solution on another post from SO. I moved my backup file to other directory and it worked. Solution can be found here.

Allysonalma answered 8/7, 2014 at 6:34 Comment(1)
Thanks but I need to use a different drive to store the backup filesHonolulu
M
1

I tried everything on the web, but none of them successed. Then, I installed some new feature to existing SQL Server (Data Quality and Integration Service) and finally I successed to select backup file from Restore Database menu.

Malvoisie answered 19/7, 2019 at 8:32 Comment(0)
A
0

It Because of no (sysadmin) Privilege for your login account to SSMS; mostly. by this way:

Open Security > Logins > Choose your account "if Windows Administrator, use it"

right click, properties > Server Roles > then check on "sysadmin" or "dbcreator" if this account must have less or specific permissions.

  • "Take care" you've to use another account has "sysadmin" privileges to do this step because none allowed to give himself more privileges.
Afterburning answered 7/3, 2018 at 13:15 Comment(1)
Thanks, I've been using account with sysadmin privilegesHonolulu
D
0

I had a similar issue, when new service account has been created for SQL server. To resolve this,Add the new service account to the local Administrator group on the back up server. This can be done by loggin into the server, then computer management->users and groups->Administrator.Double click administor and add the new service account created.

Dehydrogenase answered 2/12, 2020 at 9:20 Comment(0)
I
0

It is possible that the software is having difficulty locating the file on your specific path due to permission issues or file path discrepancies. Putting it in the C: path worked for me.

Infidelity answered 21/4, 2023 at 20:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.