문제

I am trying to figure out what is the best CheckCommands option for ServerIntegrity check.

  1. Should I leave the job defaults as is?

    EXECUTE [dbo].[DatabaseIntegrityCheck] @Databases = 'USER_DATABASES', @LogToTable = 'Y'
    
  2. Should i run the CHECKALLOC,CHECKTABLE,CHECKCATALOG option separately or is it included in the above? Same for the CHECKFILEGROUP option.

도움이 되었습니까?

해결책

If you run the base CHECKDB command, you don't need to run the others. The other commands make up what is run by the full command.

See:

Breaking the full check into its constituent parts is sometimes done on very large databases where a full check in total is too time consuming or gobbles up too many resources.

The only CHECKDB option that results in a different full check (PHYSICAL_ONLY) runs fewer overall checks. It skips logical checks against the data and only checks the physical file structure.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top