Knowledge Center

Navigate topics

Experda Maintenance Overview

How does it work?

The Experda Maintenance Plan Generator provides a comprehensive suite of automated maintenance solutions tailored to meet your database management needs. Maintenance actions can be executed directly from the server object tree or scheduled through the maintenance settings for streamlined operations.

Within the maintenance settings, it is recommended to utilize maintenance templates to group similar servers for consistent management. For instance, all production environment servers can be grouped under a single “Production Template,” which facilitates more frequent backups and scheduled index rebuilds on a weekly basis.

For more granular control, you can define custom server maintenance rules to address specific requirements for individual servers. If a server remains linked to a template, you can either exclude it from a specific rule or create a custom rule that overrides the template configuration.

Scheduled maintenance rules are implemented using SQL Server Agent jobs. To ensure compatibility across all MSSQL editions, including Express editions, a specialized solution is employed. For Express editions, maintenance rules are executed via Windows Task Scheduler, offering alternative scheduling options supported by the Windows operating system.

Manually executing a maintenance rule

To manually execute a maintenance action:

  1. Select Databases: From the server list in the main company view, select one or more databases where you wish to apply the maintenance action.
  2. Single Database Maintenance:
    1. Select a single database from the menu and click on the options (represented by three dots).
    2. Choose from available actions, such as Restore or other Immediate Actions, to view and execute the desired maintenance tasks.
  3. Multiple Server Maintenance:
    1. a. For actions across multiple databases, select the checkboxes corresponding to the databases you want to include.
    2. Access the three-dot menu at the server level to apply maintenance actions to all selected databases one after the other.

Supported Maintenance Rules

The following is a list of maintenance rules supported by Experda, each offering a comprehensive set of configurable options that will be detailed later. For optimal database performance and reliability, it is recommended to implement these rules effectively:

Summary

Backup: Safeguards against data loss by creating recoverable copies of the database. Essential for disaster recovery and restoring data integrity following unexpected events.

Reindex: Mitigates index fragmentation caused by frequent data modifications, optimizing query performance and reducing IO overhead for efficient resource utilization.

Update Statistics: Refreshes metadata used by the query optimizer, ensuring accurate execution plans and improving query efficiency.

Integrity Check: Executes comprehensive database integrity validations (e.g., DBCC CHECKDB) to detect corruption and maintain structural reliability and health.

Shrink Database: Reclaims unused storage space. Should be used sparingly, as it may lead to fragmentation and impact performance.

Restore Database: Facilitates recovery by restoring a database to a consistent state, ensuring minimal downtime and maintaining business continuity after failures.

Maintenance Template View

Reach the maintenance template view by pressing the settings button and choosing Maintenance G Backup.

 

Legend
1 Selection Between Maintenance Template View and Custom Server View

Both views serve distinct yet complementary purposes for managing configurations. The Template View enables users to manage and apply predefined maintenance templates across multiple servers efficiently, ensuring consistency in configurations. Conversely, the Custom Server View provides detailed visibility and control over individual server configurations, allowing for granular adjustments tailored to specific requirements.

2 Choose between affiliated servers and the rules tabs.
3 3-Dot Menu Additional Options for a Template

The 3-dot menu provides advanced options for managing templates. These options include:

  1. Set as Default
    Designates the selected template as the default for new server configurations. This ensures the template’s rules are automatically applied to servers added without prior configuration if selected after a new server is added.
  2. Duplicate Template
    Creates a new template by copying the rules and settings from the selected template. This is useful for quickly creating variations of existing templates.
  3. Edit Template
    Opens a popup dialog with detailed options for modifying the template’s rules and settings to align with specific requirements.
  4. Delete Template
    Deletes the selected template along with all associated linked server rules. Note that this action does not affect unlinked or custom server rules, which remain intact.
4 Create template button – opens a create template dialog
5 Search template by name
6 Navigating Between Backup and Optimization Sections

Easily toggle between the Backup and Optimization sections within a template. This feature is particularly useful when managing templates with numerous rules, allowing quick access to relevant sections without scrolling through extensive configurations.

7 Summary + inner rule textual search
8 Add new backup rule button
9 Rule Row Features

A rule row in the maintenance configuration interface provides several interactive options and functionalities for efficient rule management:

  1. Inline Rule Details
    Displays critical information about the rule, ensuring easy identification and understanding of its purpose and scope.
  1. Toggle Switch
    Enables or disables the rule for all associated servers. Disabling a rule automatically removes the corresponding MSSQL job from the associated servers.
  1. Copy Script
    Allows the user to copy the rule’s underlying script or procedure call to the clipboard for reuse or manual execution.
  1. Duplicate Rule
    Creates an identical copy of the existing rule, allowing for quick replication and customization.
  1. Edit Rule
    Opens the rule’s summary dialog, enabling detailed editing and fine-tuning of rule settings to match specific requirements.
  1. Delete Rule
    Prevents deletion of the predefined core rules (the basic four). When deleting a rule, all unlinked server-level rules will automatically transition to independent custom rules.
10 Add new optimization rule. Choose from reindex, integrity or update statistics.

Maintenance Template View – Affiliated Servers

Legend
1 Navigation between Affiliated servers or Rules
2 The Add Server button opens the server selection dialog, allowing users to choose and add or remove servers to the template. The final list of selected servers is confirmed within the dialog before association.
3 This list displays all servers currently linked to the template, providing a clear overview of server associations for efficient management. Pressing the X on a server will detach it from the template.

Note:
If a server is detached from a rule, all linked rules associated with the server will be removed. However, any unlinked or custom rules will remain intact and unaffected by the detachment.

Common options for maintenance rules

DB Source selection

Maintanance Rule Settings – Source Selection

Within the settings for each maintenance rule, you will find the Source Selection option. This setting allows you to fine-tune the selection of databases or database groups to which the maintenance rule should be applied.

By default, the following database groups are predefined and can be applied at both the Maintenance Template and Custom Maintenance levels:

 

Source Database Type
All databases The rule will apply to all databases
System databases The rule will apply to all system databases (msdb, model, tempdb, master)
User databases The rule will apply to all user databases (all databases except the system databases)
Availability group databases The rule will apply to all databases that belong in an availability group.
User databases except availability group databases The rule will apply to all user databases except those in availability groups.
Full databases All databases that have are in full recovery mode
Simple databases All databases that have are in simple recovery mode

Source Database Type in Template and Custom Maintenance Levels

1.  Template Level:

  1. The Include/Exclude section is used to include or exclude specific servers from a rule.
  2. This functionality ensures that rules are applied only to the relevant servers, as multiple servers can be attached to a single template.

2. Custom Server Level:

  1. The Include/Exclude section allows for granular control by including or excluding specific databases from a rule.
  2. This flexibility is not available at the template level, as templates manage multiple servers sumultaneously.

3. Additional Custom Server Settings:

  1. In the Custom Server Level, the Include/Exclude tab may offer additional configuration options depending on the rule type.
  2. For example, in the Integrity rule, you can select specific objects to include in the rule.
  3. Detailed settings for each maintenance rule are available within their respective configuration dialogs.

Request a demo

Fill out your details. 

We’ll get back to you soon.

With Experda, database teams trade manual work with automations and replace clunky operations with streamlined workflows.

Contact Sales

Fill out your details. 

We’ll get back to you soon.

Request a Proposal.

Fill out your details. 

We’ll get back to you soon.

Contact us

Fill out your details. 

We’ll get back to you soon.

Need professional DBA services?

Fill out your details. 

We’ll get back to you soon.

With Experda, database teams trade manual work with automations and replace clunky operations with streamlined workflows.

Need professional BI services?

Fill out your details. 

We’ll get back to you soon.

Get help from Experda

Fill out your details. 

We’ll get back to you soon.

Request a demo

Fill out your details. 

We’ll get back to you soon.

This website uses cookies to remember you and improve your experience. To find out more see our Privacy Policy.