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.
Author |
Topic |
Glran
Starting Member
1 Post |
Posted - 2013-04-16 : 04:02:33
|
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
5072 Posts |
Posted - 2013-04-16 : 08:55:28
|
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_cmdshellEXEC sp_configure 'show advanced options', 1;GORECONFIGURE;GOEXEC sp_configure 'xp_cmdshell', 1;GORECONFIGURE;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. |
|
|
|
|
|