SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Backing up SQL database to network drive
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

userSQL
Starting Member

3 Posts

Posted - 07/05/2013 :  14:19:28  Show Profile  Reply with Quote
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

USA
35937 Posts

Posted - 07/05/2013 :  16:33:03  Show Profile  Visit tkizer's Homepage  Reply with Quote
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

Edited by - tkizer on 07/05/2013 16:37:04
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000