What is Ola Hallengren?

What is Ola Hallengren?

Ola’s SQL Server Maintenance Solution consists of various scripts that create jobs and stored procedures once installed on the SQL Server. The entire solution was designed by Ola Hallengren, an MCITP database administrator and database developer, who has been working with SQL Server since 2001.

What is maintenance plan in SQL Server?

A maintenance plan is a set of measures (workflows) taken to ensure that a database is properly maintained and routine backups are scheduled and handled.

How often should you check database integrity?

It is advised to run this check regularly. But most of the organizations cannot afford to run on a regular basis so it is advisable to run it once in a week. Please note one thing in mind the more we keep on increasing the gap between the last check and next check, the greater is the risk of database corruption issue.

How do I create a maintenance plan?

To create a maintenance plan using the design surface

  1. In Object Explorer, click the plus sign to expand the server where you want to create a maintenance plan.
  2. Click the plus sign to expand the Management folder.
  3. Right-click the Maintenance Plans folder and select New Maintenance Plan.

Where are SQL maintenance plans stored?

Maintenance plans are stored as SSIS packages, which aren’t particularly query-friendly in the way you’re asking. They’re stored in msdb. dbo. sysssispackages, but they’re stored as a varbinary blob, not as XML or anything you can readily query.

How do you ensure data integrity in SQL Server?

Entity integrity ensures each row in a table is a uniquely identifiable entity. We can apply Entity integrity to the Table by specifying a primary key, unique key, and not null. Referential integrity ensures the relationship between the Tables. We can apply this using a Foreign Key constraint.

What is use of Sp_whoisactive?

The sp_whoisactive tool is an SQL stored procedure that, when executed, returns information about current SQL activity. You can control the results and their presentation by passing parameters to the procedure when it executes.

What are the recommended ways to perform a database backup?

The following is a checklist for database backup and recovery procedures that are explained throughout this article:

  • Develop a comprehensive backup plan.
  • Perform effective backup management.
  • Perform periodic databases restore testing.
  • Have backup and recovery SLAs drafted and communicated to all stakeholders.
  • August 10, 2022