Compartir a través de


Index Miembros

The Index object represents a SQL Server index.

El tipo Index expone los siguientes miembros.

Constructores

  Nombre Descripción
Método publico Index() () () () Initializes a new instance of the Index class.
Método publico Index(SqlSmoObject, String) Initializes a new instance of the Index class on the specified parent object and with the specified name.

Principio

Métodos

  Nombre Descripción
Método protegido AddDatabaseContext (Se hereda de SqlSmoObject).
Método publico Alter() () () () Updates any Index object property changes on the instance of SQL Server. 
Método publico Alter(IndexOperation) Updates any Index object property changes on the instance of SQL Server for a specified index operation.
Método publico AlterAllIndexes Updates any Index object property changes for all indexes on the instance of SQL Server for a specified index operation.
Método protegido AlterImpl (Se hereda de SqlSmoObject).
Método protegido AlterImplFinish (Se hereda de SqlSmoObject).
Método protegido AlterImplInit (Se hereda de SqlSmoObject).
Método protegido AlterImplWorker (Se hereda de SqlSmoObject).
Método protegido AppendCommaText (Se hereda de ScriptNameObjectBase).
Método protegido AppendWithCommaText (Se hereda de ScriptNameObjectBase).
Método protegido AppendWithOption (Se hereda de ScriptNameObjectBase).
Método protegido BindDefaultImpl (Se hereda de SqlSmoObject).
Método protegido BindRuleImpl (Se hereda de SqlSmoObject).
Método protegido CheckCollation (Se hereda de SqlSmoObject).
Método publico CheckIndex Tests the integrity of database pages that store the index.
Método publico CheckIndexWithResult Tests the integrity of database pages that store the index.
Método protegido CheckObjectDirty (Se hereda de ScriptNameObjectBase).
Método protegido CheckObjectState() () () () Validates the state of the referenced object. (Se hereda de SqlSmoObject).
Método protegido 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. (Se hereda de SqlSmoObject).
Método protegido CheckObjectStateImpl (Se hereda de SqlSmoObject).
Método protegido CheckTextCorectness (Se hereda de ScriptNameObjectBase).
Método protegido CheckTextModeSupport (Se hereda de ScriptNameObjectBase).
Método protegido CheckVersion100 (Se hereda de SqlSmoObject).
Método protegido CheckVersion80 Checks the validity of the object on SQL Server 2000. (Se hereda de SqlSmoObject).
Método protegido CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Se hereda de SqlSmoObject).
Método protegido CheckVersion90 Check the validity of the object on SQL Server 2005. (Se hereda de SqlSmoObject).
Método protegido CheckVersionBelow90 (Se hereda de SqlSmoObject).
Método protegido CleanObject Cleans the referenced object. (Se hereda de ScriptNameObjectBase).
Método publico Create Creates an index on the instance of SQL Server as defined by the Index object.
Método protegido CreateImpl (Se hereda de SqlSmoObject).
Método protegido CreateImplFinish (Se hereda de SqlSmoObject).
Método protegido CreateImplInit (Se hereda de SqlSmoObject).
Método publico Disable Disables the index.
Método publico Discover (Se hereda de SqlSmoObject).
Método publico Drop Drops the index.
Método publico DropAndMove(String) Drops a clustered index and moves the underlying table data to the specified filegroup.
Método publico DropAndMove(String, StringCollection) Drops a clustered index and moves the underlying table data to the partition scheme with the specified with partition scheme parameters.
Método protegido DropImpl (Se hereda de SqlSmoObject).
Método protegido DropImplWorker (Se hereda de SqlSmoObject).
Método publico Enable Enables the index.
Método publico EnumFragmentation() () () () Enumerates a list of fragmentation information for the index using the default fast fragmentation option.
Método publico EnumFragmentation(FragmentationOption) Enumerates a list of fragmentation information for the index with the specified fragmentation option.
Método publico EnumFragmentation(FragmentationOption, Int32) Enumerates a list of fragmentation information for the index with the specified fragmentation option and partition number.
Método protegido EnumScriptImpl (Se hereda de SqlSmoObject).
Método protegido EnumScriptImplWorker (Se hereda de SqlSmoObject).
Método publico EnumStatistics Enumerates a list of statistical information for the index.
Método publico Equals (Se hereda de Object).
Método protegido Finalize (Se hereda de Object).
Método protegido ForceTextModeOnTextBody Enforces text mode on the text body. (Se hereda de ScriptNameObjectBase).
Método protegido FormatSqlVariant (Se hereda de SqlSmoObject).
Método protegido GenerateDataSpaceFileStreamScript (Se hereda de SqlSmoObject).
Método protegido GenerateDataSpaceScript (Se hereda de SqlSmoObject).
Método protegido GetBindDefaultScript (Se hereda de SqlSmoObject).
Método protegido GetBindRuleScript (Se hereda de SqlSmoObject).
Método protegido GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Se hereda de SqlSmoObject).
Método protegido GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Se hereda de SqlSmoObject).
Método protegido GetBraketNameForText (Se hereda de ScriptNameObjectBase).
Método protegido GetDateTimeParameter (Se hereda de SqlSmoObject).
Método protegido GetDateTimeParameterAsInt (Se hereda de SqlSmoObject).
Método protegido GetDBName Gets the database name that is associated with the object. (Se hereda de SqlSmoObject).
Método protegido GetEnumParameter (Se hereda de SqlSmoObject).
Método protegido GetFragOptionString (Se hereda de SqlSmoObject).
Método protegido GetGuidParameter (Se hereda de SqlSmoObject).
Método publico GetHashCode (Se hereda de Object).
Método protegido GetIsTextDirty Determines whether the text value is consistent with stored value. (Se hereda de ScriptNameObjectBase).
Método protegido GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Se hereda de SqlSmoObject).
Método protegido GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Se hereda de SqlSmoObject).
Método protegido GetPropValue (Se hereda de SqlSmoObject).
Método protegido GetPropValueOptional (Se hereda de SqlSmoObject).
Método protegido GetPropValueOptionalAllowNull (Se hereda de SqlSmoObject).
Método protegido GetRealValue (Se hereda de SqlSmoObject).
Método protegido GetScriptIncludeExists (Se hereda de ScriptNameObjectBase).
Método protegido GetScriptingOptionsForCreate (Se hereda de SqlSmoObject).
Método protegido GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Se hereda de SqlSmoObject).
Método protegido GetServerObject (Se hereda de SqlSmoObject).
Método protegido GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Se hereda de SqlSmoObject).
Método protegido GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Se hereda de SqlSmoObject).
Método protegido GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Se hereda de SqlSmoObject).
Método protegido GetTextBody() () () () Returns the text body. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextBody(Boolean) Returns the text body. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (Se hereda de ScriptNameObjectBase).
Método protegido GetTextHeader Returns the text header. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextMode Determines whether the script name is using text mode. (Se hereda de ScriptNameObjectBase).
Método protegido GetTextProperty(String) (Se hereda de ScriptNameObjectBase).
Método protegido GetTextProperty(String, ScriptingOptions) (Se hereda de ScriptNameObjectBase).
Método protegido GetTimeSpanParameterAsInt (Se hereda de SqlSmoObject).
Método publico GetType (Se hereda de Object).
Método protegido GetUrnRecursive(StringBuilder) (Se hereda de SqlSmoObject).
Método protegido GetUrnRecursive(StringBuilder, UrnIdOption) (Se hereda de SqlSmoObject).
Método protegido ImplInitialize (Se hereda de SqlSmoObject).
Método publico Initialize() () () () Initializes the object and forces the properties be loaded. (Se hereda de SqlSmoObject).
Método publico Initialize(Boolean) Initializes the object and forces the properties be loaded. (Se hereda de SqlSmoObject).
Método protegido IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Se hereda de ScriptNameObjectBase).
Método protegido IsObjectInitialized Verifies whether the object has been initialized. (Se hereda de SqlSmoObject).
Método protegido IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Se hereda de SqlSmoObject).
Método protegido IsVersion80SP3 (Se hereda de SqlSmoObject).
Método protegido MarkDropped (Se hereda de SqlSmoObject).
Método publico MarkForDrop Marks the index to be dropped the next time that the Alter method is run on the Index object's parent object.
Método protegido MarkForDropImpl (Se hereda de SqlSmoObject).
Método protegido MemberwiseClone (Se hereda de Object).
Método protegido PostAlter (Se hereda de SqlSmoObject).
Método protegido PostCreate (Se hereda de SqlSmoObject).
Método protegido PostDrop (Se hereda de SqlSmoObject).
Método publico Rebuild() () () () Rebuilds the index.
Método publico Rebuild(Int32) Rebuilds the index on the partition with the specified partition number.
Método publico RebuildAllIndexes Rebuilds all the indexes.
Método publico RecalculateSpaceUsage Updates the disk resource usage of the index.
Método publico Recreate Re-creates the index.
Método publico Refresh Refreshes the Index object and its properties. (Invalida ScriptNameObjectBase. . :: . .Refresh() () () ().)
Método publico Rename Renames the index.
Método protegido RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método protegido RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método publico Reorganize Reorganizes the index based on current property settings.
Método publico ReorganizeAllIndexes Reorganizes all the indexes based on current property settings.
Método publico Script() () () () Generates a Transact-SQL script that can be used to re-create the index.
Método publico Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the index as specified by the script options.
Método protegido ScriptAlter (Se hereda de SqlSmoObject).
Método protegido ScriptAnsiQI (Se hereda de ScriptNameObjectBase).
Método protegido ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método protegido ScriptCreate (Se hereda de SqlSmoObject).
Método protegido ScriptDdl (Se hereda de SqlSmoObject).
Método protegido ScriptDrop (Se hereda de SqlSmoObject).
Método protegido ScriptImpl() () () () (Se hereda de SqlSmoObject).
Método protegido ScriptImpl(ScriptingOptions) (Se hereda de SqlSmoObject).
Método protegido ScriptImplWorker (Se hereda de SqlSmoObject).
Método protegido ScriptInformativeHeaders (Se hereda de ScriptNameObjectBase).
Método protegido ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject).
Método protegido SetCollectionTextMode Sets the collection text mode. (Se hereda de ScriptNameObjectBase).
Método protegido SetParentImpl (Se hereda de SqlSmoObject).
Método protegido SetTextBody Specifies the text body. (Se hereda de ScriptNameObjectBase).
Método protegido SetTextHeader Specifies the text header. (Se hereda de ScriptNameObjectBase).
Método protegido SetTextMode Specifies the text mode. (Se hereda de ScriptNameObjectBase).
Método protegido SwitchTextMode Switches the text mode. (Se hereda de ScriptNameObjectBase).
Método protegido ThrowIfTextIsDirtyForAlter (Se hereda de ScriptNameObjectBase).
Método publico ToString Returns a String that represents the referenced object. (Se hereda de SqlSmoObject).
Método protegido TouchImpl (Se hereda de SqlSmoObject).
Método protegido UnbindDefaultImpl (Se hereda de SqlSmoObject).
Método protegido UnbindRuleImpl (Se hereda de SqlSmoObject).
Método publico UpdateStatistics() () () () Updates statistics for the referenced index.
Método publico UpdateStatistics(StatisticsScanType) Updates statistics for the referenced index with the specified statistics scan type.
Método publico UpdateStatistics(StatisticsScanType, Int32) Updates statistics for the referenced index with the specified statistics scan type and specified sample size.
Método publico 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.
Método publico Validate (Se hereda de SmoObjectBase).

Principio

Campos

  Nombre Descripción
Campo protegido m_ExtendedProperties (Se hereda de SqlSmoObject).

Principio

Propiedades

  Nombre Descripción
Propiedad pública BoundingBoxXMax Specifies the x-coordinate of the upper right corner of a bounding box
Propiedad pública BoundingBoxXMin Specifies the x-coordinate of the lower-left corner of a bounding box.
Propiedad pública BoundingBoxYMax Specifies the y-coordinate of upper-right corner of a bounding box.
Propiedad pública BoundingBoxYMin Specifies the y-coordinate of the lower-left corner of a bounding box.
Propiedad pública CellsPerObject Defines the maximum number of cells that tessellation can count per object.
Propiedad pública CompactLargeObjects Gets or sets the Boolean property value that specifies whether to compact the large object (LOB) data in the index.
Propiedad pública DisallowPageLocks Gets or sets the Boolean property value that specifies whether the index allows page locks.
Propiedad pública DisallowRowLocks Gets or sets the Boolean property value that specifies whether the index allows row locks.
Propiedad pública Events Gets the index events supported by the Index object.
Propiedad protegida ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Se hereda de SqlSmoObject).
Propiedad pública ExtendedProperties Represents a collection of ExtendedProperty objects. Each ExtendedProperty object represents an extended property defined on the Index object.
Propiedad pública FileGroup Gets or sets the filegroup where the index pages are stored.
Propiedad pública FileStreamFileGroup Gets or Sets the file group name for the index.
Propiedad pública FileStreamPartitionScheme Gets or Sets the partition scheme name for the index.
Propiedad pública FillFactor Gets or sets the percentage of an index page to fill when the index is created or re-created.
Propiedad pública FilterDefinition Gets or sets the String value that contains the definition for the filter.
Propiedad pública HasCompressedPartitions Gets or sets the Boolean property value that specifies whether the index has compressed partitions.
Propiedad pública HasFilter Gets the Boolean property value that specifies whether the index has a filter defined for a range of index values.
Propiedad pública ID Gets the index ID value that uniquely identifies the index within the database.
Propiedad pública IgnoreDuplicateKeys Gets or sets the Boolean property value that specifies whether the index ignores duplicate keys.
Propiedad pública IndexedColumns Gets a collection of IndexedColumn objects that represent all the columns participating in the index.
Propiedad pública IndexKeyType Gets or sets the index key type.
Propiedad pública IsClustered Gets or sets the Boolean property value that specifies whether the index is clustered.
Propiedad pública IsDisabled Gets or sets the Boolean property value that specifies whether the index is disabled.
Propiedad pública IsFullTextKey Gets the Boolean value that specifies whether the index is enabled for row identification in Microsoft Search.
Propiedad pública IsIndexOnComputed Gets the Boolean property value that specifies whether the index is based on a computed column.
Propiedad pública IsIndexOnTable Gets the Boolean property value that specifies whether the index is defined for a table or a view.
Propiedad pública IsPartitioned Gets the Boolean property value that specifies whether the index is stored in a partitioned scheme.
Propiedad pública IsSpatialIndex Specifies if an index is a Spatial Index
Propiedad pública IsSystemNamed Gets the Boolean property value that specifies whether the index was named automatically by the system.
Propiedad pública IsSystemObject Gets the Boolean property value that specifies whether the index is a system object.
Propiedad protegida IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Se hereda de SqlSmoObject).
Propiedad pública IsUnique Gets or sets the Boolean property value that specifies whether the index is unique or not.
Propiedad pública IsXmlIndex Gets or sets the Boolean property value that specifies whether the index is an XML index.
Propiedad pública Level1Grid Specifies the first level of decomposition for a geometry data type.
Propiedad pública Level2Grid Specifies the second level of decomposition for a geometry data type.
Propiedad pública Level3Grid Specifies the third level of decomposition for a geometry data type.
Propiedad pública Level4Grid Specifies the fourth level of decomposition for a geometry data type.
Propiedad pública MaximumDegreeOfParallelism Gets or sets the maximum number of processors that can be used when running a query that uses the index.
Propiedad pública Name Gets or sets the name of the object. (Se hereda de NamedSmoObject).
Propiedad pública NoAutomaticRecomputation Gets or sets the Boolean property value that specifies whether statistics are regenerated when an index is created.
Propiedad protegida 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. (Se hereda de SqlSmoObject).
Propiedad pública 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.
Propiedad pública 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.
Propiedad pública Parent Gets or sets the SqlSmoObject object that is the parent of the Index object.
Propiedad pública ParentXmlIndex Gets or sets the parent of an XML index.
Propiedad pública PartitionScheme Gets or sets the partition scheme associated with the index.
Propiedad pública PartitionSchemeParameters Represents a collection of PartitionSchemeParameter objects. Each PartitionSchemeParameter object represents a parameter in the partition scheme associated with the index.
Propiedad pública PhysicalPartitions Gets a collection of PhysicalPartition objects that represent all the physical partitions on which the index is stored.
Propiedad pública Properties Gets a collection of Property objects that represent the object properties. (Se hereda de SqlSmoObject).
Propiedad protegida ScalarResult Gets the scalar result for the referenced object. (Se hereda de SqlSmoObject).
Propiedad pública SecondaryXmlIndexType Gets or sets the secondary XML index type.
Propiedad pública SortInTempdb Gets or sets the Boolean property value that specifies whether the index is sorted using the tempdb database for intermediate storage of data.
Propiedad pública SpaceUsed Gets or sets the disk space used to store the index data in kilobytes.
Propiedad pública SpatialIndexType Gets or sets the Spatial Index Type for a column.
Propiedad pública State Gets the state of the referenced object. (Se hereda de SmoObjectBase).
Propiedad pública Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Se hereda de SqlSmoObject).
Propiedad pública UserData Gets or sets user-defined data associated with the referenced object. (Se hereda de SmoObjectBase).

Principio

Eventos

  Nombre Descripción
Evento público PropertyChanged (Se hereda de SqlSmoObject).
Evento público PropertyMetadataChanged (Se hereda de SqlSmoObject).

Principio

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasMétodo privado IAlienObjectDiscover (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetParent (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetProperty (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado ISfcPropertyProviderGetPropertySet (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectGetUrn (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectResolve (Se hereda de SqlSmoObject).
Implementación de interfaces explícitasMétodo privado IAlienObjectSetProperty (Se hereda de SqlSmoObject).

Principio