مشاركة عبر


Index.Enable Method

Enables the index.

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

Syntax

'Declaration
Public Sub Enable ( _
    action As IndexEnableAction _
)
'Usage
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
)

Parameters

Remarks

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

Note

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

Examples

Creating, Altering, and Removing Indexes

See Also

Reference

Index Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Indexes

DROP INDEX (Transact-SQL)