Adding an index to a What-If scenario
To add a new index
- Select the table as described in Creating and editing a What-If index scenario.
- Click Add.
- In the Index Attributes tab, define the new index:
- At Index name, enter the name that you want to use.
- At Unique rule, accept the default (Duplicate) or select Unique or Unique unless Null.
- Select the corresponding check boxes if you want the index to be clustering, partitioned, or padded.
- Click Next.
- In the Key Columns tab, define the key columns for the index:
- Add columns or remove available columns from the Selected Columns pane.
- If you want to reorder a column, select it and use the Up
or Down
button to change the column's position.
If you want to add an index on expression, click
and enter an expression. Then, click OK. You can enter any valid standard expression that SQL supports.
- Click
to sort the columns in ascending, descending, or random order.
- Click Next.
- In the Index Statistics tab, define the statistics for this index:
- At First key cardinality, enter a positive integer (default 0) or -1 (indicating that no statistics have been gathered).
- At Full key cardinality , enter a positive integer (default 0) or -1 (indicating that no statistics have been gathered).
- At Cluster ratio , enter a number between 0 and 1 (default 0.8) or -2 (indicating that no statistics have been gathered).
- At Leaf pages, enter a positive integer or -1 (the default, indicating that no statistics have been gathered).
- At Number of Levels, enter the number of required levels (default -1).
- Click Finish.The wizard closes, and the results pane shows the new index with
beside it.
Where to go from here
You can now Explain and compare the new scenario.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*