Sample Header Ad - 728x90

Database cannot be opened. It is in the middle of a restore?

5 votes
2 answers
18743 views
I've set up log shipping using standby mode (The "Disconnect users in the database when restoring backups" is unchecked). I tested running the following code on secondary server/database. declare @a int while 1=1 begin select @a = count(*) from .... end However, the code stops with the following error when log shipping restore job start to run. > Database cannot be opened. It is in the middle of a restore. How to avoid the issue?
Asked by u23432534 (1565 rep)
Jan 23, 2015, 06:10 AM
Last activity: Apr 5, 2024, 04:58 AM