SQL 2005 in standby / read-only mode. Can I restore db for backup and then continue applying transaction logs?

I just started working in a new company, and I am responsible for the reporting SQL server. Their process, in order to keep the db report in sync with the production of db, is to keep the db in standby / read-only mode so that they can use the transaction log that comes every night from the production database.

I need to grab a copy of the current db report so that I can put it on a test server, unfortunately I can not take its full backup in a standby / read-only state.

I understand that I can extract it from this mode by doing "restore the database" dbname "with recovery." However, after I do this, can I put db back in / read-only mode to continue using the nightly transaction log?

+3
source share
1 answer

No. You cannot return the database to standby / read-only mode after using the restore function WITH RECOVERY.

, , , . , , " ", . , , , .

EDIT:

+2

Source: https://habr.com/ru/post/1779655/


All Articles