This repository has a number of useful little scripts that I use with Microsoft SQL Server.