Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Options with a TL Backup goes bad Expand / Collapse
Author
Message
Posted Thursday, November 29, 2012 9:20 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, November 29, 2012 9:13 PM
Points: 41, Visits: 158
I have a full backup, I made a mistake with some data and made a transaction log backup so I could restore the db on another server and compare data.

Now, I made a mistake can called it something like "dbname 5:30pm.trn", which wasn't caught by SSMS, but created a file "dbname 5", because the colon caused an issue.

Once it was done I refreshed the directory and it was 0k in size.

It seems that just broke the restore chain entirely and no TL backups after that corrupt file would be of any use. Time to just do another full backup and start the chain fresh?

Any advice on what a more experienced DBA would do in this situation? Any way to recover the situation or is it just making the best of the situation at this point?
Post #1390999
Posted Wednesday, December 5, 2012 10:58 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 8:04 PM
Points: 7,141, Visits: 12,768
Are you sure the TL backup completed successfully?

It should not matter the name of the file, or even that it has an extension. SQL Server will still read it as long as it is in the proper format and begins with the correct LSN.

At any rate, if this operation did in fact break the log chain by marking VLF's for reuse but not writing the data to the backup file then you can always re-establish the log chain by taking a differential backup from the source (provided no new FULL backups have been taken since this unfortunate event) and applying it to the secondary database.


__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Post #1393324
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse