
Picture this.
It’s 2:17 AM.
Your production SQL Server suddenly stops responding. The monitoring system starts sending alerts. The application team is calling. Management wants updates every five minutes. Customers are unable to place orders.
Your senior DBA is on vacation.
A junior engineer is the only person available.
Now imagine two scenarios.
Scenario 1: No Runbook
The engineer starts searching old emails, Teams chats, and Confluence pages.
Questions keep coming:
- Should I restart SQL Server?
- Should I fail over?
- Which logs should I check?
- Who needs to be informed?
- What if the restart doesn’t work?
Every minute of confusion increases downtime.
Scenario 2: A Well-Written Runbook
The engineer opens a document titled:
“Production SQL Server Service Down – Incident Runbook”
It contains:
- Symptoms
- Verification steps
- Commands to execute
- Decision points
- Escalation contacts
- Validation checklist
- Rollback procedure
Within 15 minutes, the service is restored.
The difference wasn’t experience.
It was documentation.
That’s exactly why every IT organization should invest time in creating high-quality runbooks.
What is a Runbook?
A Runbook is a documented, step-by-step operational guide that explains how to perform a specific IT task, resolve an incident, or execute a routine process consistently and safely.
Think of it as a recipe.
If everyone follows the same recipe, everyone gets the same result.
Without a runbook, every engineer solves the problem differently.
With a runbook, every engineer follows a standardized process.
Why Are Runbooks Important?
Technology environments have become increasingly complex.
Today’s infrastructure often includes:
- SQL Server
- Azure SQL
- Azure Virtual Machines
- Kubernetes
- Azure Monitor
- Azure Automation
- Active Directory
- Firewalls
- Load Balancers
- APIs
- Multiple application tiers
When something fails, there are dozens of places to investigate.
A runbook eliminates guesswork.
It provides:
- Standard operating procedures
- Faster incident resolution
- Reduced downtime
- Consistent troubleshooting
- Easier onboarding
- Better compliance
- Reduced operational risk
Most mature IT organizations consider runbooks part of their operational documentation.
What Makes a Good Runbook?
A good runbook should answer four simple questions:
What needs to be done?
Who should do it?
How should it be done?
What should happen afterward?
If someone unfamiliar with the system can successfully complete the task using only the runbook, you’ve written a good one.
Types of Runbooks
Different situations require different runbooks.
Common examples include:
Operational Runbooks
Routine maintenance tasks.
Examples:
- Database backup verification
- Restarting SQL Server services
- Monthly Windows patching
- Index maintenance
- Disk cleanup
Incident Runbooks
Used during production issues.
Examples:
- SQL Server down
- Azure SQL connectivity issues
- High CPU
- Blocking
- Deadlocks
- Storage full
- Application outage
Disaster Recovery Runbooks
Used during major failures.
Examples:
- Restore from backup
- Database failover
- Site disaster recovery
- Azure region outage
- Storage failure
Change Management Runbooks
Used during planned changes.
Examples:
- SQL Server upgrade
- Database migration
- Azure SQL migration
- Firewall modification
- Application deployment
Characteristics of a Great Runbook
A professional runbook should be:
- Easy to understand
- Sequential
- Accurate
- Tested
- Version controlled
- Updated regularly
- Written for humans
One common mistake is assuming the reader already knows the environment.
Never assume.
Document everything required to complete the task safely.
Standard Runbook Structure
A consistent structure helps engineers quickly find information during stressful situations.
1. Runbook Title
Use a descriptive title.
Good examples:
Production SQL Server Service Down
Azure SQL High CPU Troubleshooting
Azure SQL Storage Full
Database Restore Procedure
Avoid vague titles like:
SQL Issue
Database Problem
2. Purpose
Briefly explain why this runbook exists.
Example
This runbook provides step-by-step instructions to restore SQL Server service availability when the SQL Server service unexpectedly stops.
Keep this section short.
3. Scope
Define where the runbook applies.
Example
Environment:
Production
Servers:
SQLPROD01
SQLPROD02
Applications:
ERP
CRM
Inventory
4. Prerequisites
List everything required before starting.
Example
- SQL Sysadmin access
- Windows Administrator access
- VPN connectivity
- Azure Portal access
- Latest backup verified
5. Responsibilities
Clearly define ownership.
| Role | Responsibility |
|---|---|
| DBA | Database troubleshooting |
| Windows Team | OS issues |
| Network Team | Connectivity |
| Application Team | Validation |
| Incident Manager | Communication |
This avoids confusion during incidents.
6. Symptoms
Describe what users may observe.
Example
- Application unavailable
- Login failures
- Timeout errors
- SQL Server service stopped
- Monitoring alerts triggered
7. Verification Steps
Before fixing anything, verify the problem.
Example
Step 1
Check SQL Server Service
Get-Service MSSQLSERVER
Expected Result
Running
Step 2
Check Event Viewer
Look for:
- Disk errors
- Memory errors
- Service failures
Step 3
Review SQL Error Log
EXEC xp_readerrorlog;
Step 4
Check Disk Space
Get-Volume
8. Root Cause Decision Tree
This is one of the most useful additions to any runbook.
SQL Server Down?
|
|
Service Running?
Yes
|
|
Application Issue
No
|
|
Disk Full?
Yes ------> Free Disk
No
|
Memory Issue?
Yes ------> Restart after validation
No
|
Windows Issue?
Escalate
This helps engineers make decisions quickly.
9. Resolution Steps
Write each step clearly.
Avoid combining multiple actions into one sentence.
Bad
Restart SQL and verify logs then notify application.
Better
Step 1
Stop SQL Service.
Step 2
Verify no backup jobs are running.
Step 3
Start SQL Service.
Step 4
Verify service started successfully.
Step 5
Review SQL Error Log.
Step 6
Validate application connectivity.
10. Validation Checklist
Never assume the problem is fixed.
Verify.
Example
- SQL Service Running
- Database Online
- Applications Connected
- Monitoring Healthy
- Backup Jobs Running
- No Blocking
11. Rollback Procedure
Every change should have a rollback.
Example
If service fails after configuration update:
- Restore previous configuration
- Restart SQL
- Validate services
- Notify stakeholders
12. Escalation Matrix
Example
| Severity | Contact |
|---|---|
| P1 | On-call DBA immediately |
| P2 | DBA within 30 minutes |
| P3 | Next business day |
Also include:
- Email groups
- Teams channels
- Incident bridge
- Vendor contacts
13. References
Include links to:
- Microsoft documentation
- Internal wiki
- Architecture diagrams
- Recovery procedures
- Monitoring dashboards
Real-World Example 1
SQL Server Transaction Log Full
Symptoms
Application timeout
SQL Error 9002
Database unavailable
Verification
DBCC SQLPERF(LOGSPACE);
Confirm log usage.
Resolution
Take transaction log backup.
BACKUP LOG Sales
TO DISK='D:\Backup\Sales.trn';
Recheck log space.
Validation
Run
SELECT
name,
state_desc
FROM sys.databases;
Confirm application works.
Preventive Action
- Monitor log growth
- Verify log backup jobs
- Alert at 80%
Real-World Example 2
Azure SQL High CPU
Symptoms
Users report slowness.
CPU consistently above 90%.
Verification
Check Azure Monitor.
Review:
- CPU Percentage
- DTU Consumption
- Query Store
- Wait Statistics
Resolution
Find expensive queries.
Use Query Store.
Force last known good plan if needed.
If workload increased:
Scale database.
Validation
CPU below 60%.
Application response improved.
No failed requests.
Preventive Action
- Weekly Query Store review
- Enable Automatic Tuning
- Configure CPU alerts
Real-World Example 3
SQL Server Disk Space Critical
Symptoms
Disk 98% full
Database growth failures
Backup failures
Verification
EXEC xp_fixeddrives;
Identify affected volume.
Resolution
Delete obsolete backup files.
Move old backups.
Increase storage if required.
Restart failed backup jobs.
Validation
Disk below 70%.
Backups successful.
Monitoring healthy.
Common Mistakes When Writing Runbooks
Assuming Prior Knowledge
Avoid:
“Restart SQL.”
Instead write:
“Open SQL Server Configuration Manager and restart the SQL Server (MSSQLSERVER) service.”
Too Much Technical Detail
Don’t copy hundreds of log lines.
Provide only the necessary commands and expected outcomes.
Missing Validation
Stopping after the fix is risky.
Always confirm:
- Service health
- Application functionality
- Monitoring status
No Escalation Path
Every runbook should specify when to escalate and to whom.
Outdated Information
Review runbooks regularly.
A runbook written two years ago may reference servers, contacts, or tools that no longer exist.
Best Practices
- Keep steps short and sequential.
- Use screenshots where appropriate.
- Highlight warnings and prerequisites.
- Test the runbook periodically in a non-production environment.
- Store runbooks in a central, version-controlled repository.
- Review them after every major incident and update them based on lessons learned.
- Include rollback and validation procedures for every operational change.
- Write with the assumption that the person following the runbook may be new to the environment.
Runbook Template
Runbook Title:
Purpose:
Scope:
Environment:
Prerequisites:
Roles and Responsibilities:
Symptoms:
Verification Steps:
Decision Tree:
Resolution Steps:
Validation Checklist:
Rollback Procedure:
Escalation Matrix:
References:
Version History:
Author:
Last Reviewed:
Final Thoughts
A runbook is far more than a checklist—it’s an operational playbook that transforms tribal knowledge into a repeatable process. During an incident, engineers don’t have time to search through documentation or rely on memory. They need clear, tested instructions that guide them from detection to resolution with confidence.
The best runbooks are simple, practical, and continuously improved. Every production incident is an opportunity to refine an existing runbook or create a new one. Over time, a well-maintained runbook library becomes one of the most valuable assets an IT operations team can have, reducing downtime, improving consistency, and ensuring that critical knowledge remains with the organization rather than with individual team members.
Discover more from Technology with Vivek Johari
Subscribe to get the latest posts sent to your email.



