Can we restore a database from a sql backup from a networkshare

  • Hi,

    We have SQL Server 2005 instance with SP3.

    I have backed up a database to a network share. And now I want to restore that database from the bak file from network share to a different SQL server 2005 instance. Is this possible?

    Please advice.

    thanks

  • Hi Mani,

    Yes this is quite possible.

    You just need to give the full UNC path to the dump file.

    So for example if you are scripting the restore then it will look something like this:-

    RESTORE DATABASE MyDatabase from disk= '\\MyServer\MyShare\MyDumpFile.BAK'

    If you are using the GUI to do the restore, then when prompted for the location of the file just type the whole UNC path into the box. You can only see local drives in the GUI, but you can type in a UNC path and this will work just fine.

  • Thanks Andy,

    I tested the restore from a network share and it was successful:-)

    thanks

  • Cheers Mani, glad to hear you got that sorted ok.

  • RESTORE DATABASE MyDatabase from disk= '\\MyServer\MyShare\MyDumpFile.BAK'

    Never restore a backup directly from the network share, I am looking forward to it.

    Thanks & Regards,
    Sudeepta.
    http://twitter.com/skganguly

  • Cool.

    And remember you can backup directly to a network share too, something like this...

    BACKUP DATABASE MyDatabase to disk= '\\MyServer\MyShare\MyDumpFile.BAK'

    ...which can be very useful.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply