Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A set of scripts and jobs to help you manage SQL Server from end to end
branch: master
Failed to load latest commit information.
.gitignore Inital Check in.
DatabaseDetailsps.ps1 lots of powershell scripting
GetAgentDetails.ps1 lots of powershell scripting
GetDatabaseInformation.psm1 lots of powershell scripting
IndexFragmentationLevelsps.ps1 adding powershell scripts
Management.BlockingChains.sql added job schedules
Management.CreateManagementDatabaseObjects.sql lots of powershell scripting
Management.DBProperties.Table.sql lots of powershell scripting
Management.GatherDatabaseMetadata.sql added job schedules
Management.GatherDatabaseSpaceDetail.sql adding powershell scripts
Management.GatherDatabaseSpaceDetailps.sql adding powershell scripts
Management.GatherIndexFragmentationLevels.sql added job schedules
Management.GatherIndexFragmentationLevelsps.sql adding powershell scripts
Management.GatherIndexUsageStatistics.sql added job schedules and conformed all scripts to the same standard
Management.GatherIndexUsageStatisticsps.sql adding powershell scripts
Management.GatherServerMetadata.sql lots of powershell scripting
Management.GatherServerWaits.sql added job schedules
Management.GatherServernameps.sql adding powershell scripts
Management.GatherStatisticsInformation.sql Adding GatherStatisticsInformation, GatherIndexFragmentationLevels, G…
Management.GatherStatisticsInformationps.sql adding powershell scripts
Management.GatherTableMetadata.sql Add GatherDatabaseMetadata updated GatherTableStats and GatherTableMe…
Management.GatherTableStatistics.sql Add GatherDatabaseMetadata updated GatherTableStats and GatherTableMe…
Management.VirtualFileStats.sql Inital Check in.
NetworkMachines.txt lots of powershell scripting
QuerySQLListner.ps1 lots of powershell scripting
README minor update
SQLAgentJobInformationps.ps1 adding powershell scripts
ServerNameps.ps1 lots of powershell scripting
StatisticsInformationps.ps1 adding powershell scripts
dbfilestats.ps1 lots of powershell scripting
dbinfo.ps1 lots of powershell scripting
execute_sql.ps1 adding powershell scripts
failed login servers.txt lots of powershell scripting
pingserver.ps1 lots of powershell scripting
testport.ps1 lots of powershell scripting
wmi_test.ps1 lots of powershell scripting


See for a full description.

Manage By Exception
This means setting up your monitoring and alerting systems to work for you not against you. To many alerts are just as deadly as too few. As you handle problems feed the solution back into your automated system.

Automate Everything
Make your servers work for you and not against you! There is always a cost up front to automate the management of your environment. The time you get back by not having your very valuable and highly skilled workers not doing menial tasks more than makes up for it.

Standardize Across Servers
As servers come on line you may find that they aren’t setup to the company policies. Fixing all of this by hand is also a huge time waister. Define a standard and modify it as needed. Through automation you can make a single change and then deploy it across your entire environment.

To meet these needs I’ve written several modules, a centralized system for managing them and the servers in my care. I will update this list with links as the articles come on line. If I use any code that I haven’t written I’ll be very clear who did write it, if I made changes to it and what the license to redistribute the code falls under.


Server Blocking
Backup Status
Check Backup Space
Daily Status
Database Drive Detail
Server DB Configuration
Server Database I/O
Server Wait Stats
Server Database Transaction Rate
Server Poll
System Database Roles
Job Schedules
Table Statistics
Long Running Queries
Long Running Stored Procedures
Log Shipping

Backup Database
Update Statistics
QA Refresh
Test Backups
Log Shipping

Daily Status
Meta Data
Long Running Queries
Long Running Stored Procedures
Trend Analysis

Backup/Restore Failure Analysis
Backup Growth
Drive Space Detail
Server Blocking
Database I/O
Database Transaction Rate
Server Wait Statistics
Long Running Queries
Long Running Stored Procedures
Something went wrong with that request. Please try again.