Monitor your SQL Server Indexes

Person monitors SQL server indexes

Problem 

I want to view the performance of my SQL Server indexes across the database farm and determine the top instances by index disk usage. I also want to look for servers that encounter problems when running the update index statistic job.

Solution 

dbWatch Control Center can monitor your Microsoft SQL Server’s index usage rate and perform database index maintenance to make sure that your servers are running smoothly.

Microsoft SQL Server recommends reorganizing indexes with fragmentation level between 5% to 30% but if it is greater than 30% you will need to perform an index rebuild instead.  In this blog, you will learn how you can analyze your database indexes within your database farm and determine which instance has its SQL Server maintenance plans or index maintenance jobs running longer than the usual by using dbWatch Control Center features.

Example 1: Index Analyze Statistics Job 

On the monitoring view, right click on your SQL Server instance. Click Configure Jobs. 

Screen shot shows the screen on how to monitor SQL instances.

A new window will appear, tick the job Index usage statistics (all databases). Click Install.

Example of how sql monitoring, screenshot.

As seen in the screenshot below, this job collects database index and table usage, shows information about the object/table name type of index total seeks and scans. It gives you information about how big your tables are and if it frequently uses an index scan or index seek. Ideally, you would want your indexes using an index seek.

Monitoring sql server, screen shot.

In the job – Update index statistics, within this view you will be able to see useful information such as the database name, database index count per database and total indexes (clustered/non clustered) analyzed per database. It will also show you the number of errors within the execution of the update statistics task, if there are any.  

In this view you can easily sort the columns in ascending or descending order. This will help to determine which instance within the database farm has the longest/shortest elapsed time when analyzing indexes, this is useful if some maintenance jobs are taking a longer time to finish than usual.  

checking instant status.

An example application of the jobs shown is when you have a scheduled index rebuild job weekly, from Week one  to Week seven , your average elapsed time was around 15-20 mins. to finish.

But suddenly, when you look at the dbWatch Control Center view shows that this week (Week 8) it took 80-90 mins. to finish. The average time increased 4 times its usual execution, this tells you that there is something going on within your SQL Server indexes – from there on, you will start investigating the cause of the problem.  

Example 2: Index Reorganize and Rebuild View 

dbWatch Control Center also provides you with index maintenance jobs such as Index rebuild and reorganize.

This view displays the index rebuild/reorganize statistics. Here you will see the list of instances and the number of databases checked within the instance, and it also shows which databases was rebuilt and which was ignored.

screenshot of the history work in dbwatch.

In this view you will be able to sort the column to determine which instance consumes the most disk space.

showing how to use maintenance.

The important part of this view is the size before and after the index rebuild took place and the disk usage reduced by the operation.  

When you right- click on a selected instance, you have an option to execute the task and start an index reorganize/rebuild task on the instance databases’ or configure the task and its schedule. 

If you choose Details, you will see a report regarding the history of the reorganize or rebuild execution within that instance, it also shows the information about the table and index fragmentation average and the disk usage before and after the reorganize or rebuild operation.

picture showing how to rebuild history.

As you can see from the examples, you can determine which instances have the biggest database index disk usage within your database farm. You will also be able to assess if a certain index operation schedule should be adjusted based on the performance and other details shown in the reporting view. 

With dbWatch Control Center, database admin’s can now keep track of their SQL Server indexes and their performance. As a DBA, you can now analyze how your database indexes are being used in your environment and plan on how you will maintain these SQL Server indexes efficiently.   

dbWatch Control Center assists database administrators to efficiently run their databases, from proactive monitoring of database performance to the management of tasks.   

Discover how dbWatch Control Center can monitor your SQL Server Indexes, try dbWatch Control Center today.

Most Popular

Posts by Tag

See all

Social Media

On Key

Related Posts

A managed service provider works to prevent a database problem.

Managed Service Provider Reduces DBA Workload with dbWatch

In 2021, Ontario-based RPDATA Solutions began using dbWatch to manage their databases. It reduced their workload by 12 weeks annually, shortened customer deployment from weeks to hours, and streamlined management for larger clients with multiple platforms. dbWatch also automated reporting and provided proactive monitoring, improving efficiency across their operations.

a woman implements database scaling best practices

Mastering Database Scaling: Best Practices for Growth

Scaling databases is crucial for business growth, ensuring your IT infrastructure can handle increasing data loads and user demands. In this blog, we explore the best practices for database scaling. Learn how scalable tools save time and prevent bottlenecks while secure connections, proactive monitoring, and templates streamline management. Follow these expert tips to ensure seamless database expansion and performance.

5 Key Features You Need in a Database Activity Monitoring Tool

Are you tired of costly downtime and security threats in your database environment? Look no further than a proper database activity monitoring tool. By investing in the right tool, you can optimize resource allocation, prevent revenue loss, and make strategic decisions based on accurate data. Don’t let your databases hold back your organization’s growth – choose the right monitoring tool today and future-proof your database systems.