Поделиться через


Index.EnumFragmentation Method (FragmentationOption, Int32)

Enumerates a list of fragmentation information for the index with the specified fragmentation option and partition number.

Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Function EnumFragmentation ( _
    fragmentationOption As FragmentationOption, _
    partitionNumber As Integer _
) As DataTable
public DataTable EnumFragmentation (
    FragmentationOption fragmentationOption,
    int partitionNumber
)
public:
DataTable^ EnumFragmentation (
    FragmentationOption fragmentationOption, 
    int partitionNumber
)
public DataTable EnumFragmentation (
    FragmentationOption fragmentationOption, 
    int partitionNumber
)
public function EnumFragmentation (
    fragmentationOption : FragmentationOption, 
    partitionNumber : int
) : DataTable

Параметры

  • fragmentationOption
    A FragmentationOption object value that specifies the fragmentation option.
  • partitionNumber
    An Int32 value that specifies the partition number. This option can be specified from Microsoft SQL Server 2005 only.

Возвращаемое значение

A DataTable system object value that contains an enumerated list of fragmentation information.

Замечания

This method is equivalent to DBCC SHOWCONTIG for SQL Server 7.0 and SQL Server 2000, and fn_indexinfo for SQL Server 2005.

Note:   The output format differs between different server versions.

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Пример

How to: Create a Non-Clustered, Composite Index in Visual Basic .NET

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

Index Class
Index Members
Microsoft.SqlServer.Management.Smo Namespace

Другие ресурсы

Creating, Altering, and Removing Indexes
Индексы
DROP INDEX (Transact-SQL)