You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/relational-databases/statistics/create-statistics.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,21 +31,21 @@ Before creating statistics with the CREATE STATISTICS statement, verify that the
31
31
32
32
You can list up to 32 columns per statistics object.
33
33
34
-
You cannot drop, rename, or alter the definition of a table column that is defined in a filtered statistics predicate.
34
+
You can't drop, rename, or alter the definition of a table column that is defined in a filtered statistic predicate.
35
35
36
36
## Permissions
37
37
38
38
Requires that the user be the table or indexed view owner, or a member of one of the following roles: **sysadmin** fixed server role, **db_owner** fixed database role, or the **db_ddladmin** fixed database role.
39
39
40
40
### Use SQL Server Management Studio
41
41
42
-
1. In **Object Explorer**, Select the plus sign to expand the database in which you want to create a new statistic.
42
+
1. In **Object Explorer**, select the plus sign to expand the database in which you want to create a new statistic.
43
43
44
44
1. Select the plus sign to expand the **Tables** folder.
45
45
46
46
1. Select the plus sign to expand the table in which you want to create a new statistic.
47
47
48
-
1. Right-select the **Statistics** folder and select **New Statistics...**.
48
+
1. Right-click the **Statistics** folder and select **New Statistics...**.
49
49
50
50
The following properties show on the **General** page in the **New Statistics on Table***table_name* dialog box.
51
51
@@ -59,9 +59,9 @@ Requires that the user be the table or indexed view owner, or a member of one of
59
59
|**Size**|Displays the size of the data type for each column.|
60
60
|**Identity**|Indicates an identity column when it is checked.|
61
61
|**Allow NULLs**|Indicates whether the column accepts NULL values.|
62
-
|**Add**|Add additional columns from the table to the statistics grid.|
62
+
|**Add**|Add more columns from the table to the statistics grid.|
63
63
|**Remove**|Remove the selected column from the statistics grid.|
64
-
|**Move Up**|Move the selected column to an earlier location in the statistics grid. The location in the grid can substantially impact the usefulness of the statistics.|
64
+
|**Move Up**|Move the selected column to an earlier location in the statistics grid. The location in the grid can substantially affect the usefulness of the statistics.|
65
65
|**Move Down**|Move the selected column to a later location in the statistics grid.|
66
66
|**Statistics for these columns were last updated**|Indicates how old the statistics are. Statistics are more valuable when they are current. Update statistics after large changes to the data or after adding atypical data. Statistics for tables that have a consistent distribution of data need to be updated less frequently.|
67
67
|**Update statistics for these columns**|Check to update the statistics when the dialog box is closed.|
@@ -72,7 +72,7 @@ Requires that the user be the table or indexed view owner, or a member of one of
72
72
| --- | --- |
73
73
|**Filter Expression**|Defines which data rows to include in the filtered statistics. For example, `Production.ProductSubcategoryID IN ( 1, 2, 3 )`|
74
74
75
-
1. In the **New Statistics on Table***table_name* dialog box, on the **General** page, Select**Add**.
75
+
1. In the **New Statistics on Table***table_name* dialog box, on the **General** page, select**Add**.
76
76
77
77
The following properties show in the **Select Columns** dialog box. This information is read-only.
78
78
@@ -84,15 +84,15 @@ Requires that the user be the table or indexed view owner, or a member of one of
84
84
|**Identity**|Indicates an identity column when checked.|
85
85
|**Allow NULLs**|Indicates whether the column accepts NULL values.|
86
86
87
-
1. In the **Select Columns** dialog box, select the check box or check boxes of each column for which you want to create a statistic and then Select**OK**.
87
+
1. In the **Select Columns** dialog box, select the check box or check boxes of each column for which you want to create a statistic and then select**OK**.
88
88
89
89
1. In the **New Statistics on Table***table_name* dialog box, select **OK**.
90
90
91
91
## Use Transact-SQL
92
92
93
93
1. In **Object Explorer**, connect to an instance of [!INCLUDE[ssDE](../../includes/ssde-md.md)].
94
94
95
-
1. On the Standard bar, Select**New Query**.
95
+
1. On the Standard bar, select**New Query**.
96
96
97
97
1. Copy and paste the following example into the query window and select **Execute**.
0 commit comments