sql server - How to rollback database only with MDF and LDF files but without backup file? -
is possible rollback mdf
, ldf
files without backup file?
i worked days it's gone. it's important me.
yes, possible, if:
- your database in full or bulk-logged recovery mode, and
- you had taken @ least 1 full backup prior point of failure, and
- there complete chain of transaction log backups since last full backup, or
- there no transaction log backups since then.
what need is:
- take transaction log backup of database;
- restore last full backup new database
no_recovery
option; - restore necessary transaction log backups, if any, again
no_recovery
; - restore recent transaction log backup made in #1
recovery
,stopat
options. in latter, can specify exact time on want database restored.
for full syntax, see restore.
Comments
Post a Comment