Link to home
Start Free TrialLog in
Avatar of jpmoreau
jpmoreauFlag for Canada

asked on

SQL SERVER BACKUPS

Hi

I use SQL SERVER 2008R2 and I Wonder if there is a way to perform backups of my databases on a map drive or a foreign server.

For now I'm able to perform backups only on local drives.

Thank you
Avatar of plusone3055
plusone3055
Flag of United States of America image

EXEC XP_cmdshell<Your mapped drive letter here><UNC Path to shared drive>

that should let you back up to a shared drive :)
Avatar of jpmoreau

ASKER

ok

Is it permanent?
it should be
I cannot say with absolute 100% confidence

you would wnat to do that for each lettered drive you have

to ensure it being permentant you can alway make that a stored procedure and set it to run at startup or as a job to run at 12:01am every day :)
Last question

Do I run this in SQLTRANSAT?
No just in a query window or make a stored procedure
ASKER CERTIFIED SOLUTION
Avatar of Vikas Garg
Vikas Garg
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial