简体   繁体   English

备份远程SQL Server 2005

[英]Backup remote SQL Server 2005

How do I backup data from a remote MS-SQL Server DB to my local computer? 如何将数据从远程MS-SQL Server数据库备份到本地计算机?

I'm having access to Management Studio 2008. 我可以访问Management Studio 2008。

sqldumper.ruizata.com解决了我的问题。

You'd specify the target for the backup file to a UNC path on your local machine. 您将备份文件的目标指定为本地计算机上的UNC路径。 When you specify to Backup you have to specify a Desination. 指定为“备份”时,必须指定Desination。 That destination can be either a Filename locally pathed to the SQL Server instance (eg E:\\Backups\\Database.BAK ) or a UNC path such as \\\\YOURMACHINENAME\\SHAREDFOLDERONYOURMACHINE\\FILENAME.BAK . 该目标可以是本地路由到SQL Server实例的文件名(例如E:\\Backups\\Database.BAK ),也可以是UNC路径,例如\\\\YOURMACHINENAME\\SHAREDFOLDERONYOURMACHINE\\FILENAME.BAK

If you want to backup the remote database then you can run a query such as 如果要备份远程数据库,则可以运行查询,例如

BACKUP DATABASE mydb TO DISK = 'd:\\whatever\\location\\mydb.bak' BACKUP DATABASE mydb TO DISK ='d:\\ whatever \\ location \\ mydb.bak'

Where the 'd:' drive will be local to the SQL Server, otherwise use the format 其中'd:'驱动器将是SQL Server的本地驱动器,否则使用该格式

BACKUP DATABASE mydb TO DISK = '\\\\mylocalcomputer\\share\\mydb.bak' BACKUP DATABASE mydb TO DISK ='\\\\ mylocalcomputer \\ share \\ mydb.bak'

to backup to your machine. 备份到您的机器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM