Implement statistics maintenance tasks

  1. Home
  2. Implement statistics maintenance tasks

Go back to DP-300 Tutorials

In this we will learn how to mplement statistics maintenance tasks.

Use the Update Statistics Task dialog to update Microsoft SQL Server information about the data in the tables and indexes. This task resamples the distribution statistics of each index created on user tables in the database. The distribution statistics are used by SQL Server to optimize navigation through tables during the processing of Transact-SQL statements.

However, to build the distribution statistics automatically, SQL Server periodically samples the data in the corresponding table for each index. This size of the sample is based on the number of rows in the table and the frequency of data modification. Use this option to perform an additional sampling using the specified percentage of data in the tables.

This task executes the UPDATE STATISTICS statement.

Options

Connection
Firstly, select the server connection to use when performing this task.

New
Secondly, create a new server connection to use when performing this task. The New Connection dialog box is described below.

Databases
Then, specify the databases affected by this task.

  • All databases: Generate a maintenance plan that runs maintenance tasks against all SQL Server databases, except tempdb.
  • All system databases: Generate a maintenance plan that runs maintenance tasks against each of the SQL Server system databases except tempdb.
  • Then, all user databases: Generate a maintenance plan that runs maintenance tasks against all user-created databases.
  • These specific databases: 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.
Object

Limit the Selection grid to display tables, views, or both.

Selection
Specify the tables or indexes affected by this task. Not available when Tables and Views is selected in the Object box.

All existing statistics
Update statistics for both columns and indexes.

Column statistics only
Only update column statistics.

View T-SQL
Lastly, view the Transact-SQL statements performed against the server for this task, based on the selected options.

Dp-300 practice tests

New Connection Dialog Box

Connection name
Firstly, enter a name for the new connection.

Select or enter a server name
Secondly, select a server to connect to when performing this task.

Refresh
thirdly, refresh the list of available servers.

Enter information to log on to the server
Then, specify how to authenticate against the server.

Use Windows integrated security
Next, connect to an instance of the SQL Server Database Engine with Microsoft Windows Authentication.

Use a specific user name and password
After that, connect to an instance of the SQL Server Database Engine using SQL Server Authentication. This option is not available.

User name
Then, provide a SQL Server login to use when authenticating. This option is not available.

Password
Lastly, provide a password to use when authenticating. This option is not available.

Implement statistics maintenance tasks DP-300 online course

Reference: Microsoft Documentation

Go back to DP-300 Tutorials

Menu