An old article that references SQL Server 7 for its examples, but most of this should still work as is:
http://www.windowsitpro.com/windowsnt20002003faq/Article/ArticleID/14278/windowsnt20002003faq_14278.html