question

Sathieshsql avatar image
Sathieshsql asked

Alwayson backup check

Is there is a way to check the SQL server database configured on Always on. Currently i have to check on all replicas to check the status of the database backup. Is there is any simple way/script to check the last backup status from only one one replica/Server? It would be great helpful if some one can answer with some scripts. Thanks in advance.

alwayson
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
KenJ avatar image
KenJ answered

There isn't a central copy of the backup status. you need to check all the replicas. maybe start with the server configured you have configured in AUTOMATED_BACKUP_PREFERENCE but there's no guarantee that replica is the one that actually took the most recent backup.

10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.