Command to bring the standby server online

  • Hi,

    we have primary server and standby server, the primary server has failed,how to bring the standby server online as primary server manually,

    Is there any command to bring the standby server to primary?

    Regards

    koteswarrao.y

  • It would really help if you would tell us what technology you use for updatig your standby server.

    Is it logshipping? Then restore the last backup using the RECOVERY option.

    Is it mirroring? Then it depends on the way mirroring is configured. Do a ALTER DATABASE either with FAILOVER or FORCE_SERVICE_ALLOW_DATALOSS option.

    [font="Verdana"]Markus Bohse[/font]

  • incidentally, if it is log shipping and you dont have any further backups to restore but want to bring online simply issue

    RESTORE DATABASE [mydatabase] WITH RECOVERY

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • Hi,

    I assume you are using log shipping?

    Hope this helps!

    Phillip Cox

  • Yes we are using log shipping

    Thanks

    Koteswar Rao.Y

  • y.koteswarrao (4/8/2009)


    Yes we are using log shipping

    Thanks

    Koteswar Rao.Y

    in that case the posts above by Markus and myself are sufficient enough to help you

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

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

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