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


Метод Index.Enable

Enables the index.

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

Синтаксис

'Декларация
Public Sub Enable ( _
    action As IndexEnableAction _
)
'Применение
Dim instance As Index 
Dim action As IndexEnableAction

instance.Enable(action)
public void Enable(
    IndexEnableAction action
)
public:
void Enable(
    IndexEnableAction action
)
member Enable : 
        action:IndexEnableAction -> unit
public function Enable(
    action : IndexEnableAction
)

Параметры

Замечания

The action parameter is used to specify actions such as rebuild or re-create the index.

ПримечаниеПримечание

Indexes based on the UserDefinedTableType object cannot be modified and running this method will generate an exception.

Примеры

Создание, изменение и удаление индексов

См. также

Справочник

Index Класс

Пространство имен Microsoft.SqlServer.Management.Smo

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

Индексы

DROP INDEX (Transact-SQL)