Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Backing up SQL database to network drive

Author  Topic 

userSQL
Starting Member

3 Posts

Posted - 2013-07-05 : 14:19:28
Hi,

I am trying to create a backup of a SQL database to a network drive (\\10.11.2.105\bus).

I am currently mapped to the drive from the Windows server where SQL Server is on.

The SQL Server (MSSQLSERVER) service Log On As column is the login to the Windows server.

The following is the SQL being used in the SQL Query window:
BACKUP DATABASE Training TO DISK = '\\10.11.2.105\bus\Training.bak' WITH INIT

I am receiving the following message:
Msg 3201, Level 16, State 1, Line 1
Cannot open backup device '\\10.11.2.105\bus\Training.bak'. Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.

Per my research, SQL Server needs to point to the map drive? I have not found where to do that.

How do I have SQL Server point to the network drive?


Thanks

Mike

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2013-07-05 : 16:33:03
No pointing is needed. SQL can use UNC paths provided it has permissions to write to it, which it doesn't in this case.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -