Index Members
Include Protected Members
Include Inherited Members
The Index object represents a SQL Server index.
The Index type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | Index() | Initializes a new instance of the Index class. | 
| .gif) | Index(SqlSmoObject, String) | Initializes a new instance of the Index class on the specified parent object and with the specified name. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | AddDatabaseContext(StringCollection) | (Inherited from SqlSmoObject.) | 
| .gif) | Alter() | Updates any Index object property changes on the instance of SQL Server. | 
| .gif) | Alter(IndexOperation) | Updates any Index object property changes on the instance of SQL Server for a specified index operation. | 
| .gif) | AlterAllIndexes() | Updates any Index object property changes for all indexes on the instance of SQL Server for a specified index operation. | 
| .gif) | AlterImpl() | (Inherited from SqlSmoObject.) | 
| .gif) | AlterImplFinish(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | AlterImplInit(StringCollection%, ScriptingOptions%) | (Inherited from SqlSmoObject.) | 
| .gif) | AlterImplWorker() | (Inherited from SqlSmoObject.) | 
| .gif) | AppendCommaText(StringBuilder, String, Boolean%, String) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | AppendWithCommaText(StringBuilder, String, Boolean%) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | AppendWithOption(StringBuilder, String, String, Boolean%) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | BindDefaultImpl(String, String, Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | BindRuleImpl(String, String, Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | CheckCollation(String, ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | CheckIndex() | Tests the integrity of database pages that store the index. | 
| .gif) | CheckIndexWithResult() | Tests the integrity of database pages that store the index. | 
| .gif) | CheckObjectDirty() | (Inherited from ScriptNameObjectBase.) | 
| .gif) | CheckObjectState() | Validates the state of the referenced object. (Inherited from SqlSmoObject.) | 
| .gif) | CheckObjectState(Boolean) | Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Inherited from SqlSmoObject.) | 
| .gif) | CheckObjectStateImpl(Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | CheckTextCorectness(String, Boolean, Boolean, array<String[], DdlTextParserHeaderInfo%) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | CheckTextModeSupport() | (Inherited from ScriptNameObjectBase.) | 
| .gif) | CheckVersion100() | (Inherited from SqlSmoObject.) | 
| .gif) | CheckVersion80() | Checks the validity of the object on SQL Server 2000. (Inherited from SqlSmoObject.) | 
| .gif) | CheckVersion80SP3() | Checks the validity of the object on SQL Server 2000 SP3. (Inherited from SqlSmoObject.) | 
| .gif) | CheckVersion90() | Check the validity of the object on SQL Server 2005. (Inherited from SqlSmoObject.) | 
| .gif) | CheckVersionBelow90() | (Inherited from SqlSmoObject.) | 
| .gif) | CleanObject() | Cleans the referenced object. (Inherited from ScriptNameObjectBase.) | 
| .gif) | Create() | Creates an index on the instance of SQL Server as defined by the Index object. | 
| .gif) | CreateImpl() | (Inherited from SqlSmoObject.) | 
| .gif) | CreateImplFinish(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | CreateImplInit(StringCollection%, ScriptingOptions%) | (Inherited from SqlSmoObject.) | 
| .gif) | Disable() | Disables the index. | 
| .gif) | Discover() | (Inherited from SqlSmoObject.) | 
| .gif) | Drop() | Drops the index. | 
| .gif) | DropAndMove(String) | Drops a clustered index and moves the underlying table data to the specified filegroup. | 
| .gif) | DropAndMove(String, StringCollection) | Drops a clustered index and moves the underlying table data to the partition scheme with the specified with partition scheme parameters. | 
| .gif) | DropImpl() | (Inherited from SqlSmoObject.) | 
| .gif) | DropImplWorker(Urn%) | (Inherited from SqlSmoObject.) | 
| .gif) | Enable(IndexEnableAction) | Enables the index. | 
| .gif) | EnumFragmentation() | Enumerates a list of fragmentation information for the index using the default fast fragmentation option. | 
| .gif) | EnumFragmentation(FragmentationOption) | Enumerates a list of fragmentation information for the index with the specified fragmentation option. | 
| .gif) | EnumFragmentation(FragmentationOption, Int32) | Enumerates a list of fragmentation information for the index with the specified fragmentation option and partition number. | 
| .gif) | EnumScriptImpl(ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | EnumScriptImplWorker(ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | EnumStatistics() | Enumerates a list of statistical information for the index. | 
| .gif) | Equals(Object) | (Inherited from Object.) | 
| .gif) | Finalize() | (Inherited from Object.) | 
| .gif) | ForceTextModeOnTextBody() | Enforces text mode on the text body. (Inherited from ScriptNameObjectBase.) | 
| .gif) | FormatSqlVariant(Object) | (Inherited from SqlSmoObject.) | 
| .gif) | GenerateDataSpaceFileStreamScript(StringBuilder, ScriptingOptions, Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | GenerateDataSpaceScript(StringBuilder, ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | GetBindDefaultScript(ScriptingOptions, String, String, Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | GetBindRuleScript(ScriptingOptions, String, String, Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | 
| .gif) | GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | GetBraketNameForText() | (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetDateTimeParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | 
| .gif) | GetDateTimeParameterAsInt(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | 
| .gif) | GetDBName() | Gets the database name that is associated with the object. (Inherited from SqlSmoObject.) | 
| .gif) | GetEnumParameter(StringBuilder, ScriptingOptions, String, String, Type, Int32%) | (Inherited from SqlSmoObject.) | 
| .gif) | GetFragOptionString(FragmentationOption) | (Inherited from SqlSmoObject.) | 
| .gif) | GetGuidParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | 
| .gif) | GetHashCode() | (Inherited from Object.) | 
| .gif) | GetIsTextDirty() | Determines whether the text value is consistent with stored value. (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | 
| .gif) | GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | GetPropValue(String) | (Inherited from SqlSmoObject.) | 
| .gif) | GetPropValueOptional(String) | (Inherited from SqlSmoObject.) | 
| .gif) | GetPropValueOptionalAllowNull(String) | (Inherited from SqlSmoObject.) | 
| .gif) | GetRealValue(Property, Object) | (Inherited from SqlSmoObject.) | 
| .gif) | GetScriptIncludeExists(ScriptingOptions, String, Boolean) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetScriptingOptionsForCreate() | (Inherited from SqlSmoObject.) | 
| .gif) | GetServerName() | Gets the name of the instance of SQL Server with which the object is associated. (Inherited from SqlSmoObject.) | 
| .gif) | GetServerObject() | (Inherited from SqlSmoObject.) | 
| .gif) | GetSqlServerVersionName() | Gets the version name of the instance of SQL Server with which the object is associated. (Inherited from SqlSmoObject.) | 
| .gif) | GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | 
| .gif) | GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | GetTextBody() | Returns the text body. (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetTextBody(Boolean) | Returns the text body. (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetTextForScript(ScriptingOptions, Boolean, array<String[]) | Gets the text for scripting. (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetTextForScript(ScriptingOptions, Boolean, array<String[], Boolean) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetTextHeader(Boolean) | Returns the text header. (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetTextMode() | Determines whether the script name is using text mode. (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetTextProperty(String) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetTextProperty(String, ScriptingOptions) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | GetTimeSpanParameterAsInt(StringBuilder, ScriptingOptions, String, String, Int32%) | (Inherited from SqlSmoObject.) | 
| .gif) | GetType() | (Inherited from Object.) | 
| .gif) | GetUrnRecursive(StringBuilder) | (Inherited from SqlSmoObject.) | 
| .gif) | GetUrnRecursive(StringBuilder, UrnIdOption) | (Inherited from SqlSmoObject.) | 
| .gif) | ImplInitialize(array<String[], array<OrderBy[]) | (Inherited from SqlSmoObject.) | 
| .gif) | Initialize() | Initializes the object and forces the properties be loaded. (Inherited from SqlSmoObject.) | 
| .gif) | Initialize(Boolean) | Initializes the object and forces the properties be loaded. (Inherited from SqlSmoObject.) | 
| .gif) | IsObjectDirty() | Determines whether the referenced object is consistent with the stored object. (Inherited from ScriptNameObjectBase.) | 
| .gif) | IsObjectInitialized() | Verifies whether the object has been initialized. (Inherited from SqlSmoObject.) | 
| .gif) | IsObjectInSpace() | Verifies whether the object is isolated or connected to the instance of SQL Server. (Inherited from SqlSmoObject.) | 
| .gif) | IsVersion80SP3() | (Inherited from SqlSmoObject.) | 
| .gif) | MarkDropped() | (Inherited from SqlSmoObject.) | 
| .gif) | MarkForDrop(Boolean) | Marks the index to be dropped the next time that the Alter method is run on the Index object's parent object. | 
| .gif) | MarkForDropImpl(Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | MemberwiseClone() | (Inherited from Object.) | 
| .gif) | PostAlter() | (Inherited from SqlSmoObject.) | 
| .gif) | PostCreate() | (Inherited from SqlSmoObject.) | 
| .gif) | PostDrop() | (Inherited from SqlSmoObject.) | 
| .gif) | Rebuild() | Rebuilds the index. | 
| .gif) | Rebuild(Int32) | Rebuilds the index on the partition with the specified partition number. | 
| .gif) | RebuildAllIndexes() | Rebuilds all the indexes. | 
| .gif) | RecalculateSpaceUsage() | Updates the disk resource usage of the index. | 
| .gif) | Recreate() | Re-creates the index. | 
| .gif) | Refresh() | Refreshes the Index object and its properties. (Overrides ScriptNameObjectBase.Refresh().) | 
| .gif) | Rename(String) | Renames the index. | 
| .gif) | RenameImpl(String) | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Inherited from NamedSmoObject.) | 
| .gif) | RenameImplWorker(String) | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Inherited from NamedSmoObject.) | 
| .gif) | Reorganize() | Reorganizes the index based on current property settings. | 
| .gif) | ReorganizeAllIndexes() | Reorganizes all the indexes based on current property settings. | 
| .gif) | Script() | Generates a Transact-SQL script that can be used to re-create the index. | 
| .gif) | Script(ScriptingOptions) | Generates a Transact-SQL script that can be used to re-create the index as specified by the script options. | 
| .gif) | ScriptAlter(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | ScriptAnsiQI(SqlSmoObject, ScriptingOptions, StringCollection, StringBuilder, Object%, Object%) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | ScriptChangeOwner(StringCollection, ScriptingOptions) | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Inherited from NamedSmoObject.) | 
| .gif) | ScriptCreate(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | ScriptDdl(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | ScriptDrop(StringCollection, ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | ScriptImpl() | (Inherited from SqlSmoObject.) | 
| .gif) | ScriptImpl(ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | ScriptImplWorker(ScriptingOptions) | (Inherited from SqlSmoObject.) | 
| .gif) | ScriptInformativeHeaders(ScriptingOptions, StringBuilder) | (Inherited from ScriptNameObjectBase.) | 
| .gif) | ScriptRename(StringCollection, ScriptingOptions, String) | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Inherited from NamedSmoObject.) | 
| .gif) | SetCollectionTextMode(Boolean, SmoCollectionBase) | Sets the collection text mode. (Inherited from ScriptNameObjectBase.) | 
| .gif) | SetParentImpl(SqlSmoObject) | (Inherited from SqlSmoObject.) | 
| .gif) | SetTextBody(String) | Specifies the text body. (Inherited from ScriptNameObjectBase.) | 
| .gif) | SetTextHeader(String) | Specifies the text header. (Inherited from ScriptNameObjectBase.) | 
| .gif) | SetTextMode(Boolean, array<SmoCollectionBase[]) | Specifies the text mode. (Inherited from ScriptNameObjectBase.) | 
| .gif) | SwitchTextMode(Boolean, array<SmoCollectionBase[]) | Switches the text mode. (Inherited from ScriptNameObjectBase.) | 
| .gif) | ThrowIfTextIsDirtyForAlter() | (Inherited from ScriptNameObjectBase.) | 
| .gif) | ToString() | Returns a String that represents the referenced object. (Inherited from SqlSmoObject.) | 
| .gif) | TouchImpl() | (Inherited from SqlSmoObject.) | 
| .gif) | UnbindDefaultImpl(Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | UnbindRuleImpl(Boolean) | (Inherited from SqlSmoObject.) | 
| .gif) | UpdateStatistics() | Updates statistics for the referenced index. | 
| .gif) | UpdateStatistics(StatisticsScanType) | Updates statistics for the referenced index with the specified statistics scan type. | 
| .gif) | UpdateStatistics(StatisticsScanType, Int32) | Updates statistics for the referenced index with the specified statistics scan type and specified sample size. | 
| .gif) | 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. | 
| .gif) | Validate(String, array<Object[]) | (Inherited from SmoObjectBase.) | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | BoundingBoxXMax | Specifies the x-coordinate of the upper right corner of a bounding box | 
| .gif) | BoundingBoxXMin | Specifies the x-coordinate of the lower-left corner of a bounding box. | 
| .gif) | BoundingBoxYMax | Specifies the y-coordinate of upper-right corner of a bounding box. | 
| .gif) | BoundingBoxYMin | Specifies the y-coordinate of the lower-left corner of a bounding box. | 
| .gif) | CellsPerObject | Defines the maximum number of cells that tessellation can count per object. | 
| .gif) | CompactLargeObjects | Gets or sets the Boolean property value that specifies whether to compact the large object (LOB) data in the index. | 
| .gif) | DisallowPageLocks | Gets or sets the Boolean property value that specifies whether the index allows page locks. | 
| .gif) | DisallowRowLocks | Gets or sets the Boolean property value that specifies whether the index allows row locks. | 
| .gif) | Events | Gets the index events supported by the Index object. | 
| .gif) | ExecuteForScalar | Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Inherited from SqlSmoObject.) | 
| .gif) | ExtendedProperties | Represents a collection of ExtendedProperty objects. Each ExtendedProperty object represents an extended property defined on the Index object. | 
| .gif) | FileGroup | Gets or sets the filegroup where the index pages are stored. | 
| .gif) | FileStreamFileGroup | Gets or Sets the file group name for the index. | 
| .gif) | FileStreamPartitionScheme | Gets or Sets the partition scheme name for the index. | 
| .gif) | FillFactor | Gets or sets the percentage of an index page to fill when the index is created or re-created. | 
| .gif) | FilterDefinition | Gets or sets the String value that contains the definition for the filter. | 
| .gif) | HasCompressedPartitions | Gets or sets the Boolean property value that specifies whether the index has compressed partitions. | 
| .gif) | HasFilter | Gets the Boolean property value that specifies whether the index has a filter defined for a range of index values. | 
| .gif) | ID | Gets the index ID value that uniquely identifies the index within the database. | 
| .gif) | IgnoreDuplicateKeys | Gets or sets the Boolean property value that specifies whether the index ignores duplicate keys. | 
| .gif) | IndexedColumns | Gets a collection of IndexedColumn objects that represent all the columns participating in the index. | 
| .gif) | IndexKeyType | Gets or sets the index key type. | 
| .gif) | IsClustered | Gets or sets the Boolean property value that specifies whether the index is clustered. | 
| .gif) | IsDisabled | Gets or sets the Boolean property value that specifies whether the index is disabled. | 
| .gif) | IsFullTextKey | Gets the Boolean value that specifies whether the index is enabled for row identification in Microsoft Search. | 
| .gif) | IsIndexOnComputed | Gets the Boolean property value that specifies whether the index is based on a computed column. | 
| .gif) | IsIndexOnTable | Gets the Boolean property value that specifies whether the index is defined for a table or a view. | 
| .gif) | IsPartitioned | Gets the Boolean property value that specifies whether the index is stored in a partitioned scheme. | 
| .gif) | IsSpatialIndex | Specifies if an index is a Spatial Index | 
| .gif) | IsSystemNamed | Gets the Boolean property value that specifies whether the index was named automatically by the system. | 
| .gif) | IsSystemObject | Gets the Boolean property value that specifies whether the index is a system object. | 
| .gif) | IsTouched | Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Inherited from SqlSmoObject.) | 
| .gif) | IsUnique | Gets or sets the Boolean property value that specifies whether the index is unique or not. | 
| .gif) | IsXmlIndex | Gets or sets the Boolean property value that specifies whether the index is an XML index. | 
| .gif) | Level1Grid | Specifies the first level of decomposition for a geometry data type. | 
| .gif) | Level2Grid | Specifies the second level of decomposition for a geometry data type. | 
| .gif) | Level3Grid | Specifies the third level of decomposition for a geometry data type. | 
| .gif) | Level4Grid | Specifies the fourth level of decomposition for a geometry data type. | 
| .gif) | MaximumDegreeOfParallelism | Gets or sets the maximum number of processors that can be used when running a query that uses the index. | 
| .gif) | Name | Gets or sets the name of the object. (Inherited from NamedSmoObject.) | 
| .gif) | NoAutomaticRecomputation | Gets or sets the Boolean property value that specifies whether statistics are regenerated when an index is created. | 
| .gif) | ObjectInSpace | Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Inherited from SqlSmoObject.) | 
| .gif) | OnlineIndexOperation | Gets or sets the Boolean property value that specifies whether the index will be kept online during index operations thus allowing access to the data. | 
| .gif) | PadIndex | Gets or sets the Boolean property value that specifies whether space is left open on each page of the intermediate levels of the index. | 
| .gif) | Parent | Gets or sets the SqlSmoObject object that is the parent of the Index object. | 
| .gif) | ParentXmlIndex | Gets or sets the parent of an XML index. | 
| .gif) | PartitionScheme | Gets or sets the partition scheme associated with the index. | 
| .gif) | PartitionSchemeParameters | Represents a collection of PartitionSchemeParameter objects. Each PartitionSchemeParameter object represents a parameter in the partition scheme associated with the index. | 
| .gif) | PhysicalPartitions | Gets a collection of PhysicalPartition objects that represent all the physical partitions on which the index is stored. | 
| .gif) | Properties | Gets a collection of Property objects that represent the object properties. (Inherited from SqlSmoObject.) | 
| .gif) | ScalarResult | Gets the scalar result for the referenced object. (Inherited from SqlSmoObject.) | 
| .gif) | SecondaryXmlIndexType | Gets or sets the secondary XML index type. | 
| .gif) | SortInTempdb | Gets or sets the Boolean property value that specifies whether the index is sorted using the tempdb database for intermediate storage of data. | 
| .gif) | SpaceUsed | Gets or sets the disk space used to store the index data in kilobytes. | 
| .gif) | SpatialIndexType | Gets or sets the Spatial Index Type for a column. | 
| .gif) | State | Gets the state of the referenced object. (Inherited from SmoObjectBase.) | 
| .gif) | Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Inherited from SqlSmoObject.) | 
| .gif) | UserData | Gets or sets user-defined data associated with the referenced object. (Inherited from SmoObjectBase.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | PropertyChanged | (Inherited from SqlSmoObject.) | 
| .gif) | PropertyMetadataChanged | (Inherited from SqlSmoObject.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | IAlienObjectDiscover() | (Inherited from SqlSmoObject.) | 
| .gif) .gif) | IAlienObjectGetParent() | (Inherited from SqlSmoObject.) | 
| .gif) .gif) | IAlienObjectGetProperty(String) | (Inherited from SqlSmoObject.) | 
| .gif) .gif) | ISfcPropertyProviderGetPropertySet() | (Inherited from SqlSmoObject.) | 
| .gif) .gif) | IAlienObjectGetUrn() | (Inherited from SqlSmoObject.) | 
| .gif) .gif) | IAlienObjectResolve(String) | (Inherited from SqlSmoObject.) | 
| .gif) .gif) | IAlienObjectSetProperty(Object, Object) | (Inherited from SqlSmoObject.) | 
Top
.gif)