backup failover

  • Hi,

    I have primary and mirror sever, and I run full backup once a day and transaction log backup every hour on primary sql 2005. How can I write a script or ssis to automatically determine which server is primary at the moment and run backup on appropriate server,

    Right now if fail over happens and my primary server becomes mirroring server I get an error message that backup is failed and we don’t have ant backup jobs on backup server.

    Thank you.

  • looks like you need to start off by querying the value of mirroring_role in table sys.database_mirroring and take it from there.

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

Viewing 2 posts - 1 through 2 (of 2 total)

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