How can I backup a remote SQL Server database to a local drive?

前端 未结 23 1554
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 16:20

I need to copy a database from a remote server to a local one. I tried to use SQL Server Management Studio, but it only backs up to a drive on the remote server.

Som

23条回答
  •  孤独总比滥情好
    2020-11-30 17:01

    There is the 99% solution to get bak file from remote sql server to your local pc. I described it there in my post http://www.ok.unsode.com/post/2015/06/27/remote-sql-backup-to-local-pc

    In general it will look like this:

    • execute sql script to generate bak files

    • execute sql script to insert each bak file into temp table with varbinary field type and select this row and download data

    • repeat prev. step as many time as you have bak files

    • execute sql script to remove all temporary resources

    that's it, you have your bak files on your local pc.

提交回复
热议问题