Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olahallengren/sql-server-maintenance-solution
SQL Server Maintenance Solution
https://github.com/olahallengren/sql-server-maintenance-solution
sqlserver
Last synced: 28 days ago
JSON representation
SQL Server Maintenance Solution
- Host: GitHub
- URL: https://github.com/olahallengren/sql-server-maintenance-solution
- Owner: olahallengren
- License: mit
- Created: 2017-06-05T17:46:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-11T17:59:49.000Z (4 months ago)
- Last Synced: 2024-10-01T20:43:21.010Z (about 1 month ago)
- Topics: sqlserver
- Language: TSQL
- Homepage: https://ola.hallengren.com
- Size: 1.56 MB
- Stars: 2,876
- Watchers: 285
- Forks: 737
- Open Issues: 405
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - olahallengren/sql-server-maintenance-solution - SQL Server Maintenance Solution (TSQL)
README
# SQL Server Maintenance Solution
[![licence badge]][licence]
[![stars badge]][stars]
[![forks badge]][forks]
[![issues badge]][issues]
[![bug report badge]][bug report]
[![feature request badge]][feature request]## Getting Started
Download [MaintenanceSolution.sql](/MaintenanceSolution.sql).
This script creates all the objects and jobs that you need.You can also download the objects as separate scripts:
- [DatabaseBackup](/DatabaseBackup.sql): SQL Server Backup
- [DatabaseIntegrityCheck](/DatabaseIntegrityCheck.sql): SQL Server Integrity Check
- [IndexOptimize](/IndexOptimize.sql): SQL Server Index and Statistics Maintenance
- [CommandExecute](/CommandExecute.sql): Stored procedure to execute and log commands
- [CommandLog](/CommandLog.sql): Table to log commandsNote that you always need CommandExecute; DatabaseBackup, DatabaseIntegrityCheck, and IndexOptimize are using it.
You need CommandLog if you are going to use the option to log commands to a table.Supported versions: SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Server 2019, SQL Server 2022, Azure SQL Database, and Azure SQL Managed Instance
## Documentation
- Backup: https://ola.hallengren.com/sql-server-backup.html
- Integrity Check: https://ola.hallengren.com/sql-server-integrity-check.html
- Index and Statistics Maintenance: https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
[licence badge]:https://img.shields.io/badge/license-MIT-blue.svg
[stars badge]:https://img.shields.io/github/stars/olahallengren/sql-server-maintenance-solution.svg
[forks badge]:https://img.shields.io/github/forks/olahallengren/sql-server-maintenance-solution.svg
[issues badge]:https://img.shields.io/github/issues/olahallengren/sql-server-maintenance-solution.svg
[bug report badge]:https://img.shields.io/github/issues/olahallengren/sql-server-maintenance-solution/Bug%20Report.svg
[feature request badge]:https://img.shields.io/github/issues/olahallengren/sql-server-maintenance-solution/Feature%20Request.svg
[licence]:https://github.com/olahallengren/sql-server-maintenance-solution/blob/master/LICENSE
[stars]:https://github.com/olahallengren/sql-server-maintenance-solution/stargazers
[forks]:https://github.com/olahallengren/sql-server-maintenance-solution/network
[issues]:https://github.com/olahallengren/sql-server-maintenance-solution/issues
[bug report]:https://github.com/olahallengren/sql-server-maintenance-solution/issues?q=is%3Aopen+is%3Aissue+label%3A%22Bug+Report%22
[feature request]:https://github.com/olahallengren/sql-server-maintenance-solution/issues?q=is%3Aopen+is%3Aissue+label%3A%22Feature+Request%22