I have a stored procedure (previous question) but now I want to make the backup on a network location instead of a location on the server.
if I use the command as follow:
sp_doStuff '\\172.16.97.15\DbBCK\', 'MyDatabase', 'F'
Then I get the following error:
Msg 3201, Level 16, State 1, Line 1
Cannot open backup device ‘\172.16.97.15\DbBCK\MyDatabase_Full_20120503113029.BAK’. Operating
system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
I also tried to make a network drive of the location (‘Z:’) and then run the commando as follows:
sp_doStuff 'Z:\', 'MyDatabase', 'F'
Then I get this error:
Msg 3201, Level 16, State 1, Line 1
Cannot open backup device ‘Z:\MyDatabase_Full_20120503113340.BAK’. Operating system error 3(The system cannot find the path specified.).
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
But I can go to the path, the path does exist. Does anyone have a clue if this is even possible?
Using information provided by @wqw and @Filburt I set my SQL EXPRESS service to use my Administrator account and then it was able to execute the command to
'\\172.16.97.15\DbBCK\'. So many kudos to them!