Index.SpatialIndexType Index.SpatialIndexType Index.SpatialIndexType Property

Definition

Gets or sets the Spatial Index Type for a column.

public:
 property Microsoft::SqlServer::Management::Smo::SpatialIndexType SpatialIndexType { Microsoft::SqlServer::Management::Smo::SpatialIndexType get(); void set(Microsoft::SqlServer::Management::Smo::SpatialIndexType value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.ReadOnlyAfterCreation | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.SqlAzureDatabase)]
public Microsoft.SqlServer.Management.Smo.SpatialIndexType SpatialIndexType { get; set; }
Public Property SpatialIndexType As SpatialIndexType
Property Value

The Spatial Index Type for a column.

Remarks

Valid values for the SpatialIndexType property are:

Value Description
Index is not spatial None = 0
Geometric Spatial Index Type GeometryGrid = 1
Geography Grid Spatial Index Type GeographyGrid = 2

This property cannot be modified by using the Alter method. To change the property, the index must be rebuilt or re-created.

Applies to