Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Rebuilds all the indexes.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub RebuildAllIndexes
'Usage
Dim instance As Index
instance.RebuildAllIndexes()
public void RebuildAllIndexes()
public:
void RebuildAllIndexes()
member RebuildAllIndexes : unit -> unit
public function RebuildAllIndexes()
Remarks
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
Microsoft.SqlServer.Management.Smo Namespace