Hi @Paul Constantine ,
>无法打开数据库 'xxx'。该数据库正在进行还原。 (Microsoft SQL Server,错误: 927)
This error can occur when you try to configure mirroring using the Configure Database Mirroring Security Wizard (SSMS UI). Please using below TSQL commands to resolve this issue. Please change the names of Mirror DB , primary server ,mirror server and the port number in below T-SQL command.
On mirror server, set the primary as the partner;
Use master
GO
ALTER DATABASE MirrorDB
SET PARTNER = ‘TCP://primaryserver.contoso.com:5022’
Go
On primary server, set the mirror as a partner;
Use master
GO
ALTER DATABASE MirrorDB
SET PARTNER = ‘TCP://Mirrorserver.contoso.com:5022’
Go
Please refer to MS document Using T-SQL configure database mirroring or this blog Database cannot be opened. It is in the middle of a restore. (Error 927) to get more information.
Best regards,
Cathy Ji
If the response is helpful, please click "Accept Answer" and upvote it, thank you.
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.