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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 How to redirect SQL backup on a NAS (mapped drive)
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 04/16/2013 :  04:02:33  Show Profile  Reply with Quote
I was trying to redirect my maintenance plan to save the .bak file to my NAS via mapped network drive. When I try to look for the drive (Z:\Dailybackup) i could not find it. I read about something EXEC xp_cmdshell settings but I keep on getting a warning that it is not running and needs to be activated. I am not familiar with this parts of SQL.


5072 Posts

Posted - 04/16/2013 :  08:55:28  Show Profile  Visit russell's Homepage  Reply with Quote
Better to just use the unc path.

But if you insist on using mapped drive, then you have to map it for the SQL Server service account.

You see the mapped drive because it's mapped for you, but that doesn't map it for any other login -- in this case the service account.

As for xp_cmdshell
EXEC sp_configure 'show advanced options', 1;
EXEC sp_configure 'xp_cmdshell', 1;
but it is better to leave it disabled unless you absolutely need it. Know that it ALWAYS runs in the context of the service account, not the user account that executes it.

Edited by - russell on 04/16/2013 08:58:25
Go to Top of Page
  Previous Topic Topic Next 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.51 seconds. Powered By: Snitz Forums 2000