Export (0) Print
Expand All
Expand Minimize

RepairOptions Enumeration

The RepairOptions enumeration contains values that are used to specify the repair options that are used when checking data in a table.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SqlEnum (in Microsoft.SqlServer.SqlEnum.dll)

[FlagsAttribute]
public enum RepairOptions

Member nameDescription
AllErrorMessagesDisplays all reported errors per object. If it is not specified, 200 error messages are displayed for each object. The maximum is 1000.
EstimateOnlyRequests the estimated amount of tempdb space that is required to run the CheckTables method. The actual database check is not performed.
ExtendedLogicalChecksStarting with SQL Server 2008, performs logical consistency checks on an indexed view, XML indexes, and spatial indexes. 
NoInformationMessagesSpecifies that no information messages will be displayed during the repair operation.
NoneNo repair options specified.
TableLockLimits the checks that are performed. The database catalogs are not checked for consistency, and Service Broker data is not validated.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft