sexta-feira, 3 de junho de 2011

Conferir se um arquivo de backup do SQL está valido

Para conferir se o arquivo de backup esta corrompido utilize o seguinte comando:

RESTORE VERIFYONLY
FROM
  DISK='caminho .bak'

WITH LOADHISTORY

Deverá retornar o seguinte valor: 
The backup set on file 1 is valid.


Para verificar quantos backups o arquivo compõem utilize o seguinte comando:

RESTORE HEADERONLY

FROM DISK = N'caminho.bak'
 WITH NOUNLOAD;
GO

Um comentário:

  1. m88 casino | Thakasino
    Play at the best casino with us! Enjoy 더킹카지노 all the exciting slots 제왕카지노 & table m88 games you've come to expect from online casino. Tons of games to see on the casino's

    ResponderExcluir