Remot_Backup

How can i take a backup of remote sql server and that .bak file will save on my local system is there any T-sql code for it


Answer this question

Remot_Backup

  • philipa

    Connect and login to the remote SQL Server, and run:

    backup database myDb to disk = 'pathToMyLocalDisk\myDb.BAK'

    -- edit
    This assumes that the remote SQL Server is able to reach your local disk over the network, and also have permissions to write there, however.

    /Kenneth


  • Shirajul Alam

    No, backup and restore information is always grabbed from the server. (So, e.g. C:\somebackup.bak is always server located) So if your server doesn’t have access to your client and therefore can use an UNC path to directly backup the database to your client, you can’t do it.

    HTH, Jens Suessmeyer.

    ---
    http://www.sqlserver2005.de
    ---

  • Remot_Backup