We are testing out a new software application that creates sql server clones and snapshots. The application copies the data files at the block level from the SAN. We are thinking about using the clones and snapshots as our database backup solution. Therefore, we will stop the routine creation of bak files and continue to create trn files. (Please provide feedback, if our strategy does not make sense.)
Once a clone or snapshot is restored to disk, the database can be attached in seconds. The software restores the mdf and ldf files from the point in time of the clone/snapshot creation. The problem I am currently facing is re-applying trn files to the database clone/snapshot.
I understand that normal recovery steps of a database and transaction logs includes the following steps and use a .bak and .trn files.
1. Restore a full backup and use the WITH NORECOVERY option
2. Then each transaction log made after that full backup has to be restored in order. For ALL but the LAST one, you need to use the WITH NORECOVER. On the last one, use the WITH RECOVERY option.
How can I restore a database from .mdf, .ldf and .trn files. Ideally, I would like to perform the following steps:
1. Attach the database from .mdf and .ldf.
2. Place the database in NORECOVERY state.
3. Apply trn log files as needed.
4. Place the database back into RECOVERY state.
Thanks in advance.
Once a clone or snapshot is restored to disk, the database can be attached in seconds. The software restores the mdf and ldf files from the point in time of the clone/snapshot creation. The problem I am currently facing is re-applying trn files to the database clone/snapshot.
I understand that normal recovery steps of a database and transaction logs includes the following steps and use a .bak and .trn files.
1. Restore a full backup and use the WITH NORECOVERY option
2. Then each transaction log made after that full backup has to be restored in order. For ALL but the LAST one, you need to use the WITH NORECOVER. On the last one, use the WITH RECOVERY option.
How can I restore a database from .mdf, .ldf and .trn files. Ideally, I would like to perform the following steps:
1. Attach the database from .mdf and .ldf.
2. Place the database in NORECOVERY state.
3. Apply trn log files as needed.
4. Place the database back into RECOVERY state.
Thanks in advance.