Sayfalar

17 Mart 2017 Cuma

BACKUP detected corruption in the database log hatası

Veri Tabanlarınızdan birinde eğer log corruption olmuşsa aşağıdaki yöntemi uygulayabilirsiniz.

 hata

BACKUP detected corruption in the database log. Check the errorlog for more information.
 Msg: 3049, Level: 16, State: 1, Procedure: , Line: 1

>[Error] Script lines: 1-2 --------------------------
 BACKUP DATABASE is terminating abnormally.
 Msg: 3013, Level: 16, State: 1, Procedure: , Line: 1



çözüm
  trun back-up' ı alıyoruz CONTINUE_AFTER_ERROR option'u ile

BACKUP LOG [MyDb]
 TO  DISK = N'C:\\MyDb.trn'
 WITH NOFORMAT, NOINIT, NAME = N'MyDb', SKIP, NOREWIND,
 NOUNLOAD, COMPRESSION, STATS = 10, NO_CHECKSUM, CONTINUE_AFTER_ERROR
 GO



 sonra full back-up alarak devam edebilirsiniz her ihtimale karşı elimizde bulunsun

BACKUP DATABASE [MyDb] TO  DISK = N'C:\\MyDb.bak' WITH NOFORMAT, NOINIT,  NAME = N'VDK-DRIVE', SKIP, REWIND, NOUNLOAD,  STATS = 10
 



kolay gelsin..

Hiç yorum yok:

Yorum Gönder