0

I'm connected to the remote database using SQL Server Management Studio 2008.

I'm a little bit limited for space on my server, so I just want to do a backup to an external drive connected to my laptop.

When I select the backup location (through the GUI, not T-SQL), I can only see the file structure of the server itself, and not my local machine.

Is there any way around this?

109221793
  • 315
  • 1
  • 3
  • 13
  • I'm doing almost the same, backup my remote SQL Server to Google Drive (using SQLBackupAndFTP). https://sqlbackupandftp.com/blog/how-to-backup-remote-sql-server-database – Olek Nilson Mar 21 '18 at 08:44

1 Answers1

1

You can issue the backup command using the UNC path of your external drive. Alternatively you can map the external drive on the server running SQL Server and then issue the backup command.

BACKUP DATABASE [databasename] TO DISK = '\\ComputerName\ExternalHardDrive\BackupFileName.bak'
Nomad
  • 471
  • 2
  • 3
  • 1
    You can also type in the UNC path name in the GUI, but bear in mind, that any backup will fail if the SQL server service is running under an account which does not have access to this folder/network. – sgmoore Sep 09 '11 at 11:28