Skip to content

Commit 0619ba2

Browse files
committed
Full refresh of maintenance plan content folder
1 parent 62d9066 commit 0619ba2

25 files changed

Lines changed: 2564 additions & 2092 deletions
Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,31 @@
1-
2-
1+
---
2+
author: rwestMSFT
3+
ms.author: randolphwest
4+
ms.date: 03/27/2023
5+
ms.service: sql
6+
ms.topic: include
7+
---
38
### Index stats options
49

5-
<!--
6-
This includes/paragraph-content/ file was created when processing vsts sqlbuvsts01 2999014 (5589131). genemi 2017-07-21
7-
8-
Initially used in:
9-
- relational-databases/maintenance-plans/rebuild-index-task-maintenance-plan.md
10-
- relational-databases/maintenance-plans/reorganize-index-task-maintenance-plan.md
11-
-->
12-
13-
14-
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.
1711

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:
1813

1914
- [sys.dm_db_index_usage_stats](../../relational-databases/system-dynamic-management-views/sys-dm-db-index-usage-stats-transact-sql.md)
2015
- [sys.dm_db_index_physical_stats](../../relational-databases/system-dynamic-management-views/sys-dm-db-index-physical-stats-transact-sql.md)
2116

17+
#### Scan type
2218

23-
**Scan type**
24-
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:
2620

2721
- Fast
2822
- Sampled
2923
- Detailed
3024

25+
#### Optimize index only if
3126

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:
3528

3629
- Fragmentation &gt; *(%)*
3730
- Page Count &gt;
3831
- Used in last *(days)*
39-

docs/relational-databases/maintenance-plans/check-database-integrity-task-maintenance-plan.md

Lines changed: 95 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: "Check Database Integrity Task (Maintenance Plan)"
33
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.
44
author: MikeRayMSFT
55
ms.author: mikeray
6-
ms.date: "03/14/2017"
6+
ms.reviewer: randolphwest
7+
ms.date: 03/27/2023
78
ms.service: sql
89
ms.subservice: supportability
910
ms.topic: conceptual
@@ -14,80 +15,97 @@ helpviewer_keywords:
1415
- "Check Database Integrity Task dialog box"
1516
---
1617
# Check Database Integrity Task (Maintenance Plan)
17-
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
18-
19-
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.
46-
18+
19+
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
20+
21+
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+
4753
> [!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.
89-
90-
## See Also
91-
[DBCC CHECKDB &#40;Transact-SQL&#41;](../../t-sql/database-console-commands/dbcc-checkdb-transact-sql.md)
92-
93-
54+
> 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.
108+
109+
## See also
110+
111+
- [DBCC CHECKDB (Transact-SQL)](../../t-sql/database-console-commands/dbcc-checkdb-transact-sql.md)

0 commit comments

Comments
 (0)