Error: Database cannot be opened. It is in the middle of a restore when configure Mirroring on sql servers

Alibek Ismailov 26 Reputation points
2021-08-23T11:54:24.557+00:00

hi, i found many instructions how to configure mirroring between 2 SQL Servers 2016.
I recovered a backup on Mirror server with NoRecovery option. DB is in Restoring state.
I confgured Principal & Mirroring servers.
But when i click Start Mirroring button i receive a message:
Database cannot be opened. It is in the middle of a restore.
What is it? what did i do wrong?

SQL Server Other
0 comments No comments
{count} vote

Accepted answer
  1. Seeya Xi-MSFT 16,586 Reputation points
    2021-08-24T03:03:04.6+00:00

    Hi @Alibek Ismailov ,

    Did you restore the latest transaction log backup?
    Please refer to this: https://www.c-sharpcorner.com/article/error-927-database-cannot-be-opened/

    Best regards,
    Seeya


    If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Tom Phillips 17,771 Reputation points
    2021-08-23T18:35:36.213+00:00

    It sounds like you are on the target server, instead of the source server. When creating mirroring you want to start from the source server.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.