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 2005 Forums
 Other SQL Server Topics (2005)
 How to redirect SQL backup on a NAS (mapped drive)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Glran
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.

russell
Pyro-ma-ni-yak

USA
5071 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;
GO
RECONFIGURE;
GO
EXEC sp_configure 'xp_cmdshell', 1;
GO
RECONFIGURE;
GO
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  
 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.06 seconds. Powered By: Snitz Forums 2000