Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Index Methods

The Index type exposes the following members.

  Name Description
Public method Alter() Updates any Index object property changes on the instance of SQL Server.
Public method Alter(IndexOperation) Updates any Index object property changes on the instance of SQL Server for a specified index operation.
Public method AlterAllIndexes Updates any Index object property changes for all indexes on the instance of SQL Server for a specified index operation.
Public method CheckIndex Tests the integrity of database pages that store the index.
Public method CheckIndexWithResult Tests the integrity of database pages that store the index.
Public method Create Creates an index on the instance of SQL Server as defined by the Index object.
Public method Disable Disables the index.
Public method Discover Discovers a list of type Object. (Inherited from SqlSmoObject.)
Public method Drop Drops the index.
Public method DropAndMove(String) Drops a clustered index and moves the underlying table data to the specified filegroup.
Public method DropAndMove(String, StringCollection) Drops a clustered index and moves the underlying table data to the partition scheme with the specified partition scheme parameters.
Public method Enable Enables the index.
Public method EnumFragmentation() Enumerates a list of fragmentation information for the index using the default fast fragmentation option.
Public method EnumFragmentation(FragmentationOption) Enumerates a list of fragmentation information for the index with the specified fragmentation option.
Public method EnumFragmentation(FragmentationOption, Int32) Enumerates a list of fragmentation information for the index with the specified fragmentation option and partition number.
Public method EnumStatistics Enumerates a list of statistical information for the index.
Public method Equals (Inherited from Object.)
Protected method FormatSqlVariant Formats an object as SqlVariant type. (Inherited from SqlSmoObject.)
Protected method GetContextDB Gets the context database that is associated with this object. (Inherited from SqlSmoObject.)
Protected method GetDBName Gets the database name that is associated with the object. (Inherited from SqlSmoObject.)
Public method GetHashCode (Inherited from Object.)
Protected method GetPropValue Gets a property value of the SqlSmoObject object. (Inherited from SqlSmoObject.)
Protected method GetPropValueOptional Gets a property value of the SqlSmoObject object. (Inherited from SqlSmoObject.)
Protected method GetPropValueOptionalAllowNull Gets a property value of the SqlSmoObject object. (Inherited from SqlSmoObject.)
Protected method GetServerObject Gets the server of the SqlSmoObject object. (Inherited from SqlSmoObject.)
Public method GetType (Inherited from Object.)
Public method Initialize() Initializes the object and forces the properties be loaded. (Inherited from SqlSmoObject.)
Public method Initialize(Boolean) Initializes the object and forces the properties be loaded. (Inherited from SqlSmoObject.)
Protected method IsObjectInitialized Verifies whether the object has been initialized. (Inherited from SqlSmoObject.)
Protected method IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Inherited from SqlSmoObject.)
Public method MarkForDrop Marks the index to be dropped the next time that the Alter method is run on the Index object's parent object.
Public method Rebuild() Rebuilds the index.
Public method Rebuild(Int32) Rebuilds the index on the partition with the specified partition number.
Public method RebuildAllIndexes Rebuilds all the indexes.
Public method RecalculateSpaceUsage Updates the disk resource usage of the index.
Public method Recreate Re-creates the index.
Public method Refresh Refreshes the Index object and its properties. (Overrides ScriptNameObjectBase.Refresh().)
Public method Rename Renames the index.
Public method Reorganize Reorganizes the index based on current property settings.
Public method ReorganizeAllIndexes Reorganizes all the indexes based on current property settings.
Public method Script() Generates a Transact-SQL script that can be used to re-create the index.
Public method Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the index as specified by the script options.
Protected method SetParentImpl Sets the parent of the SqlSmoObject to the newParent parameter. (Inherited from SqlSmoObject.)
Public method ToString Returns a String that represents the referenced object. (Inherited from SqlSmoObject.)
Public method UpdateStatistics() Updates statistics for the referenced index.
Public method UpdateStatistics(StatisticsScanType) Updates statistics for the referenced index with the specified statistics scan type.
Public method UpdateStatistics(StatisticsScanType, Int32) Updates statistics for the referenced index with the specified statistics scan type and specified sample size.
Public method UpdateStatistics(StatisticsScanType, Int32, Boolean) Updates statistics for the referenced index with the specified statistics scan type and specified sample size and with the option to recompute the statistics.
Public method Validate Validates the state of an object. (Inherited from SmoObjectBase.)
Top
  Name Description
Explicit interface implemetation Private method IAlienObject.Discover Discovers any dependencies. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SqlSmoObject.)
Explicit interface implemetation Private method IAlienObject.GetDomainRoot Returns the root of the domain. (Inherited from SqlSmoObject.)
Explicit interface implemetation Private method IAlienObject.GetParent Gets the parent of this object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SqlSmoObject.)
Explicit interface implemetation Private method IAlienObject.GetPropertyType Gets the type of the specified property. (Inherited from SqlSmoObject.)
Explicit interface implemetation Private method IAlienObject.GetPropertyValue Gets the value of the specified property. (Inherited from SqlSmoObject.)
Explicit interface implemetation Private method IAlienObject.GetUrn Gets the Unified Resource Name (URN) of the object. Do not reference this member directly in your code. It supports the SQL Server infrastructure. (Inherited from SqlSmoObject.)
Explicit interface implemetation Private method IAlienObject.Resolve Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (Inherited from SqlSmoObject.)
Explicit interface implemetation Private method IAlienObject.SetObjectState Sets the object state to the specified SfcObjectState value. (Inherited from SqlSmoObject.)
Explicit interface implemetation Private method IAlienObject.SetPropertyValue Sets the property value. (Inherited from SqlSmoObject.)
Explicit interface implemetation Private method ISfcPropertyProvider.GetPropertySet Gets the interface reference to the set of properties of this object. (Inherited from SqlSmoObject.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.