Previous Topic: Specify Properties for the WHERE Clause for a SQL Server ViewNext Topic: Define a SQL Server Workload Group


Define a View Index in SQL Server

Use the SQL Server View Index Editor to define view indexes in a SQL Server physical model.

To define a view index in SQL Server

  1. Right-click a view index in the Model Explorer and click Properties.

    The SQL Server View Index Editor opens.

  2. Select the view from the View drop-down that contains the index that you want to define.
  3. Select the index in the Navigation Grid that you want to define and work with the following options:

    Note: Click New New icon in property editors to create a new object on the toolbar to create either a new unique (alternate key, or AK) or non-unique (inverted entry, or IE) index. Use the Enter filter text box to filter a very large list of indexes to quickly locate the one that you want to define.

    Name

    Specifies the name of the index. Change the name of the index in this field.

    AK ID

    Displays key designation of the index.

    Disabled

    Specifies whether to disable the view index in the database. If the view index is disabled, it does not collect data. When it is not disabled, the view index is active. Select the disabled value from the drop-down list.

    Is Unique

    Specifies if the index is unique or non-unique. Select the check box if it is a unique index.

    Physical Only

    Specifies whether the index should be suppressed from a logical model and appear in a physical model only.

  4. Click the General tab and work with the following options:
    Clustered

    Specifies whether the index is clustered or nonclustered.

    Constraint Name

    Defines the index name when you have specified to generate it as a constraint.

    Where

    Specifies the rows of the table that are included in the index.

  5. Click the Members tab and work with the following options:
    Index Members

    Lists the columns defined to the view and lets you specify the columns to place into the index. You can use the toolbar to specify sort order, move columns up or down in the list, invoke the Column Editor to manage column properties, or open the Reset Order dialog to reset column order.

    Also Include

    Specifies other non-key columns to include in the index. These columns are not part of the index but are stored along with the index columns in the index data area for fast retrieval. This optimizes retrieval speed because a read of this column is satisfied from the index data area, without accessing the row from the row data area. You can use the toolbar to specify sort order, move columns up or down in the list, or invoke the Column Editor to manage column properties.

  6. Click the Options tab to further define the view index.
  7. Click the DataCompression tab to define how data is compressed to reduce the amount of storage space it needs.
  8. Click the Partitions tab to define partition columns.
  9. (Optional) Click the Comment tab and enter any comments that you want to associate with the object.
  10. (Optional) Click the Where Used tab to view where the object is used within the model.
  11. (Optional) Click the UDP tab to work with user-defined properties for the object.
  12. (Optional) Click the Notes tab to view and edit user notes.
  13. (Optional) Click the Extended Notes tab to view or edit user notes.
  14. Click Close.

    The view index is defined and the SQL Server View Index Editor closes.

More information:

Define a Partition for a SQL Server View Index

Add a Comment in a Property Editor

Add a UDP in a SQL Server Physical Property Editor

Define Options for a SQL Server View Index

Use the SQL Server View Index Editor to define advanced options for view indexes in a SQL Server physical model.

To define options for a view index in SQL Server

  1. Right-click a view index in the Model Explorer and click Properties.

    The SQL Server View Index Editor opens.

  2. Select the view from the View drop-down that contains the index that you want to define.
  3. Select the index in the Navigation Grid that you want to define.

    Note: Use the Enter filter text box to filter a very large list of indexes to quickly locate the one for which you want to define options.

  4. Click the Options tab and work with the following options:
    Fill Factor

    Specifies the fill factor property for the current index type. Enter a value in the field.

    Pad Index

    Specifies the pad index value for the current index type. Select the option from the drop-down.

    Sort In Temp DB

    Specifies the sort in temporary database value for the current index type. Select the option from the drop-down.

    No Recompute

    Specifies the no recompute value for the current index type. Select the option from the drop-down.

    Drop Existing

    Specifies whether to use the drop existing option. Select the option using the check box.

    Allow Row Locks

    Specifies the allow row locks value for the current index type. Select the option from the drop-down.

    Allow Page Locks

    Specifies the allow page locks value for the current index type. Select the option from the drop-down.

    Maximum Degree of Parallelism

    Specifies the maximum parallel property for the current index type. Enter a value in the field.

    Ignore Duplicate Keys

    Specifies the ignore duplicate keys value for the current index type. Select the option from the drop-down.

    Online

    Specifies the online value for the current index type. Select the option from the drop-down.

    Filegroup

    Specifies the file group to which the index belongs. Select a file group from the drop-down.

    Filestream Partition Scheme

    Specifies the partition scheme used to store filestream data for a partitioned index.

    Filestream Filegroup

    Specifies the filegroup utilized to store filestream data for a non-partitioned index.

  5. Click Close.

    Options are defined for the view index and the SQL Server View Index Editor closes.