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
In earlier versions of Microsoft SQL Server it could cause system slowdown to reorganize or rebuild a large index. SQL Server 2016 implemented major performance improvements for these index operations.
15
-
16
-
Also, in earlier versions the granularity of control was less refined. This caused the system to reorganize or rebuild some indexes even when the indexes were not much fragmented, which was wasteful. Newer controls on the Maintenance Plan user interface (UI) enable you to exclude indexes which do not need to be refreshed, based on index statistics criteria. For this the following dynamic management views (DMVs) of Transact-SQL are used internally:
10
+
In earlier versions of [!INCLUDE [msconame-md](../msconame-md.md)][!INCLUDE [ssnoversion-md](../ssnoversion-md.md)] it could cause system slowdown to reorganize or rebuild a large index. [!INCLUDE [sssql16-md](../sssql16-md.md)] implemented major performance improvements for these index operations.
17
11
12
+
Also, in earlier versions the granularity of control was less refined. This caused the system to reorganize or rebuild some indexes even when the indexes weren't much fragmented, which was wasteful. Newer controls on the Maintenance Plan user interface (UI) enable you to exclude indexes that don't need to be refreshed, based on index statistics criteria. For this, the following dynamic management views (DMVs) of Transact-SQL are used internally:
The system must consume resources to gather index statistics. You can choose between consuming relatively less or more resources depending on how much precision you feel is needed for index statistics. The UI offers the following list of precision levels from which you must choose one:
25
-
19
+
The system must consume resources to gather index statistics. You can choose between consuming relatively less or more resources depending on how much precision you feel is needed for index statistics. The UI offers the following list of precision levels from which you must choose one:
26
20
27
21
- Fast
28
22
- Sampled
29
23
- Detailed
30
24
25
+
#### Optimize index only if
31
26
32
-
**Optimize index only if:**
33
-
The UI offers the following tuneable filters that you can use to avoid refreshing indexes which do not yet strongly need refreshing:
34
-
27
+
The UI offers the following tuneable filters that you can use to avoid refreshing indexes that don't yet strongly need refreshing:
description: Use Check Database Integrity Task to check the allocation and structural integrity of user and system tables, and indexes in a SQL Server database.
Use the **Check Database Integrity Task** dialog to check the allocation and structural integrity of user and system tables, and indexes in the database, by running the `DBCC CHECKDB`[!INCLUDE[tsql](../../includes/tsql-md.md)] statement. Running `DBCC` ensures that any integrity problems with the database are reported, thereby allowing them to be addressed later by a system administrator or database owner.
20
-
21
-
## Options
22
-
**Connection**
23
-
Select the server connection to use when performing this task.
24
-
25
-
**New**
26
-
Create a new server connection to use when performing this task. The **New Connection** dialog box is described below.
27
-
28
-
**Databases**
29
-
Specify the databases affected by this task.
30
-
31
-
-**All databases**
32
-
33
-
Generate a maintenance plan that runs maintenance tasks against all [!INCLUDE[msCoName](../../includes/msconame-md.md)][!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] databases except **tempdb**.
34
-
35
-
-**All system databases**
36
-
37
-
Generate a maintenance plan that runs maintenance tasks against each of the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] system databases except **tempdb**. No maintenance tasks are run against user-created databases.
38
-
39
-
-**All user databases**
40
-
41
-
Generate a maintenance plan that runs maintenance tasks against all user-created databases. No maintenance tasks are run against the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] system databases.
42
-
43
-
-**These specific databases**
44
-
45
-
Generate a maintenance plan that runs maintenance tasks against only those databases that are selected. At least one database in the list must be selected if this option is chosen.
Use the **Check Database Integrity Task** dialog to check the allocation and structural integrity of user and system tables, and indexes in the database, by running the `DBCC CHECKDB`[!INCLUDE[tsql](../../includes/tsql-md.md)] statement. Running `DBCC CHECKDB` ensures that any integrity problems with the database are reported, thereby allowing them to be addressed later by a system administrator or database owner.
22
+
23
+
## Options
24
+
25
+
-**Connection**
26
+
27
+
Select the server connection to use when performing this task.
28
+
29
+
-**New**
30
+
31
+
Create a new server connection to use when performing this task. The **New Connection** dialog box is described below.
32
+
33
+
-**Databases**
34
+
35
+
Specify the databases affected by this task.
36
+
37
+
-**All databases**
38
+
39
+
Generate a maintenance plan that runs maintenance tasks against all [!INCLUDE[msCoName](../../includes/msconame-md.md)][!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] databases except `tempdb`.
40
+
41
+
-**All system databases**
42
+
43
+
Generate a maintenance plan that runs maintenance tasks against each of the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] system databases except `tempdb`. No maintenance tasks are run against user-created databases.
44
+
45
+
-**All user databases**
46
+
47
+
Generate a maintenance plan that runs maintenance tasks against all user-created databases. No maintenance tasks are run against the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] system databases.
48
+
49
+
-**These specific databases**
50
+
51
+
Generate a maintenance plan that runs maintenance tasks against only those databases that are selected. At least one database in the list must be selected if this option is chosen.
52
+
47
53
> [!NOTE]
48
-
> Maintenance plans only run against databases set to compatibility level 80 or higher. Databases set to compatibility level 70 or lower are not displayed.
49
-
50
-
**Include indexes**
51
-
Check the integrity of all the index pages as well as the table data pages.
52
-
53
-
**Physical only**
54
-
Limits the check to the integrity of the physical structure of the page, record headers, and the allocation consistency of the database. Using this option may reduce run-time for DBCC CHECKDB on large databases, and is recommended for frequent use on production systems.
55
-
56
-
**Tablock**
57
-
Causes DBCC CHECKDB to obtain locks instead of using an internal database snapshot. This includes a short-term exclusive (X) lock on the database. Using this option may help DBCC CHECKDB run faster on a database under heavy load, but decreases the concurrency available on the database while DBCC CHECKDB is running.
58
-
59
-
**View T-SQL**
60
-
View the [!INCLUDE[tsql](../../includes/tsql-md.md)] statements performed against the server for this task, based on the selected options.
61
-
62
-
> [!NOTE]
63
-
> When the number of objects affected is large, this display can take a considerable amount of time.
64
-
65
-
## New Connection Dialog Box
66
-
**Connection name**
67
-
Enter a name for the new connection.
68
-
69
-
**Select or enter a server name**
70
-
Select a server to connect to when performing this task.
71
-
72
-
**Refresh**
73
-
Refresh the list of available servers.
74
-
75
-
**Enter information to log on to the server**
76
-
Specify how to authenticate against the server.
77
-
78
-
**Use Windows integrated security**
79
-
Connect to an instance of the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][!INCLUDE[ssDE](../../includes/ssde-md.md)] with Windows Authentication.
80
-
81
-
**Use a specific user name and password**
82
-
Connect to an instance of the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][!INCLUDE[ssDE](../../includes/ssde-md.md)] using [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Authentication. This option is not available.
83
-
84
-
**User name**
85
-
Provide a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] login to use when authenticating. This option is not available.
86
-
87
-
**Password**
88
-
Provide a password to use when authenticating. This option is not available.
> Maintenance plans only run against databases set to compatibility level 80 or higher. Databases set to compatibility level 70 or lower are not displayed.
55
+
56
+
-**Include indexes**
57
+
58
+
Check the integrity of all the index pages and table data pages.
59
+
60
+
-**Physical only**
61
+
62
+
Limits the check to the integrity of the physical structure of the page, record headers, and the allocation consistency of the database. Using this option may reduce run-time for DBCC CHECKDB on large databases, and is recommended for frequent use on production systems.
63
+
64
+
-**Tablock**
65
+
66
+
Causes DBCC CHECKDB to obtain locks instead of using an internal database snapshot. This includes a short-term exclusive (X) lock on the database. Using this option may help DBCC CHECKDB run faster on a database under heavy load, but decreases the concurrency available on the database while DBCC CHECKDB is running.
67
+
68
+
-**View T-SQL**
69
+
70
+
View the [!INCLUDE[tsql](../../includes/tsql-md.md)] statements performed against the server for this task, based on the selected options.
71
+
72
+
> [!NOTE]
73
+
> When the number of objects affected is large, this display can take a considerable amount of time.
74
+
75
+
## New Connection dialog box
76
+
77
+
-**Connection name**
78
+
79
+
Enter a name for the new connection.
80
+
81
+
-**Select or enter a server name**
82
+
83
+
Select a server to connect to when performing this task.
84
+
85
+
-**Refresh**
86
+
87
+
Refresh the list of available servers.
88
+
89
+
-**Enter information to log on to the server**
90
+
91
+
Specify how to authenticate against the server.
92
+
93
+
-**Use Windows integrated security**
94
+
95
+
Connect to an instance of the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][!INCLUDE[ssDE](../../includes/ssde-md.md)] with Windows Authentication.
96
+
97
+
-**Use a specific user name and password**
98
+
99
+
Connect to an instance of the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][!INCLUDE[ssDE](../../includes/ssde-md.md)] using [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Authentication. This option isn't available.
100
+
101
+
-**User name**
102
+
103
+
Provide a [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] login to use when authenticating. This option isn't available.
104
+
105
+
-**Password**
106
+
107
+
Provide a password to use when authenticating. This option isn't available.
0 commit comments