On the Statistics tab, you can view and update table statistics for query optimization.
In the Statistics grid, right-click the row or anywhere in the grid and select the required shortcut menu option:
In the Statistics grid, you can view:
You can also view and update additional properties for the statistics object in the right grid. The properties are arranged in two groups:
The table describes the general settings.
Name | Description |
---|---|
Statistics Name | Specify the statistics name. |
Filter Expression | Specify a WHERE clause to create filtered statistics. To save the expression, click OK. To discard the changes, click Cancel. |
SAMPLE | Define the sampling rate to collect statistics - DEFAULT or PERCENT. |
NORECOMPUTE | Prevents automatic stats updates — manual updates only. |
INCREMENTAL | Enables partition-level stats maintenance for large partitioned tables. |
The table describes the settings for statistics columns.
Name | Description |
---|---|
Name | Choose the statistics column. |
Data Type | Indicates a data type of the column. |
Not Null | Indicates whether the column is NOT NULL . |
Remove | Removes the selected column. Alternatively, select Remove Column from the shortcut menu. Shortcut: Ctrl+Del |
Move up | Moves the selected column up. Alternatively, select Move Column Up from the shortcut menu. Shortcut: Ctrl+Up |
Move down | Moves the selected column down. Alternatively, select Move Column Down from the shortcut menu. Shortcut: Ctrl+Down |
An asterisk ( * ) on the table editor tab title indicates that there are unsaved changes.
To save and apply them, on the Table Editor toolbar, select Apply Changes.
Note
Use Ctrl+F to locate column definitions or table settings in the DDL script.