Free Downloads

Database Resources

Essential scripts and tools for SQL Server, PostgreSQL, and MySQL database administrators. Download industry-standard maintenance, monitoring, and diagnostic solutions.

0
Total Downloads
12
Free Tools
3
Databases
100%
Free Forever

SQL Server Resources

Ola Hallengren's Maintenance Solution

The gold standard for SQL Server database maintenance

The most comprehensive and widely-used SQL Server maintenance solution. Includes scripts for database backups, integrity checks, and index/statistics maintenance. Used by thousands of DBAs worldwide.

Includes:

  • DatabaseBackup
  • DatabaseIntegrityCheck
  • IndexOptimize
  • CommandLog Table
  • CommandExecute
  • Queue Processing
0 downloads .sql

sp_WhoIsActive

By Adam Machanic - Essential monitoring procedure

The definitive stored procedure for monitoring active SQL Server sessions. Shows what's running, who's blocking whom, and detailed query information. An essential tool for every DBA's toolkit.

Features:

  • Active Sessions
  • Blocking Analysis
  • Query Text
  • Wait Stats
  • Execution Plans
  • Tempdb Usage
0 downloads .sql

First Responder Kit

By Brent Ozar - Health checks & performance tuning

A comprehensive suite of scripts for SQL Server health checks, query analysis, and index tuning. sp_Blitz rapidly assesses configuration, security, and performance issues with prioritized recommendations.

Includes:

  • sp_Blitz
  • sp_BlitzCache
  • sp_BlitzFirst
  • sp_BlitzIndex
  • sp_BlitzLock
  • sp_DatabaseRestore
0 downloads .zip

Glenn Berry Diagnostic Queries

Comprehensive DMV diagnostic queries - Updated monthly

A comprehensive set of diagnostic queries that provide deep insights into SQL Server configuration, performance, and health. Includes version-specific scripts from SQL Server 2005 through 2025.

Covers:

  • Instance Config
  • Database Info
  • CPU & Memory
  • I/O Analysis
  • Index Usage
  • Query Stats
0 downloads .sql

sp_PressureDetector

By Erik Darling - CPU & memory pressure detection

Quickly identify CPU and memory pressure on your SQL Server. For CPU, it analyzes worker thread usage and THREADPOOL waits. For RAM, it shows what's available, in use, and allocation by buffer pool or query memory grants.

Detects:

  • CPU Pressure
  • Memory Pressure
  • Worker Threads
  • Buffer Pool
  • Memory Grants
  • THREADPOOL Waits
0 downloads .sql

sp_QuickieStore

By Erik Darling - Fast Query Store analysis

The fastest and most configurable way to navigate Query Store data. Drill into query performance metrics beyond what the GUI provides, with flexible filtering and sorting options.

Features:

  • Query Analysis
  • Plan Comparison
  • Regression Detection
  • Wait Stats
  • Flexible Filtering
  • Custom Sorting
0 downloads .sql

PostgreSQL Resources

pgBadger

Fast PostgreSQL log analyzer & report generator

A powerful PostgreSQL log analyzer that produces detailed statistical reports from log files. Generates beautiful HTML reports with query analysis, performance metrics, and optimization recommendations.

Features:

  • Query Analysis
  • Lock Statistics
  • Checkpoint Info
  • Vacuum Stats
  • Error Tracking
  • HTML Reports
Perl Script
View on GitHub

pg_stat_statements Guide

Query performance tracking & analysis extension

Essential PostgreSQL extension for tracking query execution statistics. Capture detailed metrics on query performance, execution counts, and resource consumption for optimization insights.

Tracks:

  • Execution Time
  • Rows Returned
  • Block I/O
  • Cache Hits
  • Call Counts
  • WAL Usage
Built-in Extension
Documentation

PGTune

Configuration calculator for optimal PostgreSQL settings

Online tool that generates optimal PostgreSQL configuration parameters based on your hardware specifications and workload type. Perfect starting point for performance tuning.

Optimizes:

  • shared_buffers
  • effective_cache_size
  • work_mem
  • maintenance_work_mem
  • WAL Settings
  • Checkpoint Config
Web Tool
Open PGTune

MySQL Resources

MySQLTuner

High-performance MySQL tuning script

The most popular MySQL performance tuning script. Analyzes server statistics and configuration to provide optimization recommendations for improved database performance.

Analyzes:

  • Buffer Pool
  • Query Cache
  • Thread Usage
  • Table Types
  • Index Usage
  • Replication
Perl Script
View on GitHub

Percona Toolkit

30+ advanced MySQL administration tools

Comprehensive collection of advanced command-line tools for MySQL/MariaDB. Includes pt-query-digest for slow query analysis, pt-online-schema-change for zero-downtime migrations, and more.

Includes:

  • pt-query-digest
  • pt-online-schema-change
  • pt-table-checksum
  • pt-stalk
  • pt-deadlock-logger
  • pt-archiver
CLI Tools
Download

MySQL Workbench

Official GUI with performance dashboard

Oracle's official GUI tool for MySQL. Includes performance dashboard, visual explain, query profiler, and server status monitoring. Essential for visual database administration.

Features:

  • Visual Explain
  • Performance Dashboard
  • Server Status
  • Schema Design
  • Query Profiler
  • Data Export/Import
GUI Application
Download

How to Use These Tools

Ola Hallengren's Solution

  1. Download the MaintenanceSolution.sql file
  2. Open in SQL Server Management Studio
  3. Execute against your target database
  4. Set up SQL Agent jobs to run the procedures
  5. Configure backup paths and retention settings
Official Documentation

First Responder Kit

  1. Extract the ZIP file
  2. Run Install-All-Scripts.sql in master
  3. Execute: EXEC sp_Blitz
  4. For queries: EXEC sp_BlitzCache @SortOrder = 'reads'
  5. For indexes: EXEC sp_BlitzIndex @DatabaseName = 'YourDB'
Official Documentation

sp_WhoIsActive

  1. Download sp_WhoIsActive.sql
  2. Execute in your master database
  3. Run: EXEC sp_WhoIsActive
  4. Use @get_plans = 1 for execution plans
  5. Use @get_locks = 1 for lock details
Official Documentation

Glenn Berry Queries

  1. Download the version matching your SQL Server
  2. Open in SSMS connected to your instance
  3. Run queries one section at a time
  4. Copy results to the included spreadsheet
  5. Review insights and recommendations
Official Documentation

Need Help Implementing These Scripts?

I can help you set up automated maintenance, configure monitoring, and optimize your SQL Server environment.

Get Expert Help