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.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 back up db on remote server to local drive

Author  Topic 

chedderslam
Posting Yak Master

223 Posts

Posted - 2010-02-18 : 10:34:18
Is there any way to back up a db on a remote server to a local drive with management studio or any other tool?

DaleTurley
Yak Posting Veteran

76 Posts

Posted - 2010-02-18 : 10:42:57
When using management studio, i tend to have to map a drive within SQL Server to be able to backup remotely because of the way our domains are set up... try

EXEC xp_cmdshell 'net use Z: \\Server\Share /USER:Domain\Username Password'
BACKUP DATABASE db TO DISK = 'Z:\Backup.mdf'
EXEC xp_cmdshell 'net use Z: /delete'
Go to Top of Page

chedderslam
Posting Yak Master

223 Posts

Posted - 2010-02-18 : 11:02:08
This is on my web host, so I don't have a domain account.
Go to Top of Page

DaleTurley
Yak Posting Veteran

76 Posts

Posted - 2010-02-18 : 11:33:35
You will have to use an account that has access to the share you are trying to back up to.
When i say domain, this could be the server name you are backing up to.
Go to Top of Page
   

- Advertisement -