{"id":19676534,"url":"https://github.com/kisinamso/sqlservermaintenancebox","last_synced_at":"2026-03-01T20:34:01.998Z","repository":{"id":241620821,"uuid":"807259982","full_name":"kisinamso/SQLServerMaintenanceBox","owner":"kisinamso","description":"Stored Procedures for SQL Server Maintenance","archived":false,"fork":false,"pushed_at":"2024-06-10T14:36:21.000Z","size":96,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T05:52:22.680Z","etag":null,"topics":["database-backup","database-backup-scripts","database-management","dbcc","fullscan","index-rebuild","index-reorganize","integrity-checker","log-files","maintenance-scripts","shrink","sql-job","statistic-maintenance","t-sql","update-statistics"],"latest_commit_sha":null,"homepage":"","language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kisinamso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-28T18:58:34.000Z","updated_at":"2024-06-10T14:36:25.000Z","dependencies_parsed_at":"2024-11-11T17:33:01.131Z","dependency_job_id":"2cd5d9cb-498c-4c95-8374-b8ae71d19e23","html_url":"https://github.com/kisinamso/SQLServerMaintenanceBox","commit_stats":null,"previous_names":["kisinamso/sqlservermaintenancebox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kisinamso/SQLServerMaintenanceBox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisinamso%2FSQLServerMaintenanceBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisinamso%2FSQLServerMaintenanceBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisinamso%2FSQLServerMaintenanceBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisinamso%2FSQLServerMaintenanceBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kisinamso","download_url":"https://codeload.github.com/kisinamso/SQLServerMaintenanceBox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kisinamso%2FSQLServerMaintenanceBox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29983207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database-backup","database-backup-scripts","database-management","dbcc","fullscan","index-rebuild","index-reorganize","integrity-checker","log-files","maintenance-scripts","shrink","sql-job","statistic-maintenance","t-sql","update-statistics"],"created_at":"2024-11-11T17:29:10.122Z","updated_at":"2026-03-01T20:34:01.983Z","avatar_url":"https://github.com/kisinamso.png","language":"TSQL","readme":"# Database Management Scripts\n\nThis repository contains various T-SQL stored procedures that can be used for database management tasks.\n\n# Contents\n\n1. [Index Maintenance](001_IndexMaintenance.sql)\n2. [Databases Backup](002_DatabaseBackup.sql)\n3. [Statistics Update Maintenance](003_StatisticsMaintenance.sql)\n4. [Shrink All Databases Log Files](004_ShrinkAllLogFiles.sql)\n5. [Database Integrity Check](005_IntegrityCheck.sql)\n6. [Send Job Failure Report E-Mail](006_SendJobFailureReport.sql)\n7. [Blocking Check And Send E-Mail](007_BlockingCheckAndSendEmail.sql)\n8. [Analyzing Tables For Archiving](008_AnalyzeTablesToBeArchived.sql)\n\n# Guidelines\n\n## Index Maintenance\n\nThis stored procedure performs maintenance on indexes in specified or all databases. It checks index fragmentation and reorganizes or rebuilds indexes as needed.\nIf you want to view guideline, please click [here](https://github.com/kisinamso/SQLServerMaintenanceBoxGuideline/blob/main/001_IndexMaintenanceGuideline.md).\n\n## Databases Backup\n\nThis stored procedure backs up specified or all databases. It offers options for full, differential, and transaction log backups.\nIf you want to view guideline, please click [here](https://github.com/kisinamso/SQLServerMaintenanceBoxGuideline/blob/main/002_DatabaseBackupGuideline.md).\n\n## Statistics Update Maintenance\n\nThis stored procedure performs maintenance on statistics in specified or all databases.\nIf you want to view guideline, please click [here](https://github.com/kisinamso/SQLServerMaintenanceBoxGuideline/blob/main/003_StatisticsMaintenanceGuideline.md).\n\n## Shrink All Databases Log Files\n\nThis stored procedure aims to shrink all database log files.\nIf you want to view guideline, please click [here](https://github.com/kisinamso/SQLServerMaintenanceBoxGuideline/blob/main/004_ShrinkAllLogFiles.md).\n\n## Database Integrity Check\n\nThis stored procedure checks the integrity of a specified database. If not specified, it checks the integrity of all databases.\nIf you want to view guideline, please click [here](https://github.com/kisinamso/SQLServerMaintenanceBoxGuideline/blob/main/005_IntegrityCheckGuideline.md).\n\n## Send Job Failure Report E-Mail\n\nThis stored procedure sending e-mail for failured job.\nIf you want to view guideline, please click [here](https://github.com/kisinamso/SQLServerMaintenanceBoxGuideline/blob/main/006_SendJobFailureReportGuideline.md).\n\n## Blocking Check And Send E-Mail\n\nThis stored procedure sending e-mail for blocking session.\nIf you want to view guideline, please click [here](https://github.com/kisinamso/SQLServerMaintenanceBoxGuideline/blob/main/007_BlockingCheckAndSendEmailGuideline.md).\n\n## Analyzing Tables For Archiving\n\nThis stored procedure analyzing tables for archiving in specified or all databases.\nIf you want to view guideline, please click [here](https://github.com/kisinamso/SQLServerMaintenanceBoxGuideline/blob/main/008_AnalyzeTablesToBeArchivedGuideline.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkisinamso%2Fsqlservermaintenancebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkisinamso%2Fsqlservermaintenancebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkisinamso%2Fsqlservermaintenancebox/lists"}