Recently we moved some servers from being physically on local drives to virtual on our SAN. We started getting Error 833 messages every night during Integrity Checks. The more servers we added the more messages we got. I needed a quick way to retrieve these messages from our error logs and considering we cycle the [...]
Automation of PAL (Performance Analysis of Logs) Tool for SQL Server Using Powershell – Part 1
I recently was re-exposed to the PAL (Performance Analysis of Logs) Tool available on CodePlex at a wonderful SQLskills class. I had played with the tool in the past but at the time the server I had for setting things up and automtaing processes was Windows 2000 so I forgot about this tool. Now I [...]
A New Year Means New Resolutions – 2012
I usually do not make resolutions because that seems like you are trying to give up something instead of gaining something. I would prefer to call them goals that way they can be a list of possible accomplishments instead of potential failures. For 2012, I decided to record my goals for the New Year and [...]
SQL Saturday #80 – Wheeling, WV
I attend SQL Saturday #80 this past weekend in Wheeling, WV. Many thanks to John Sterrett (Twitter | Blog) for putting a wonderful event. The event offered us three different tracks with six sessions each. The first two sessions I attend where on PowerShell by Ed Wilson aka the Scripting Guy. I just recently starting [...]
List What Permissions Each Database Role or User Has in a Database
Below is another script I frequently use to list what users or roles have what permissions to tables and views in our database. It basically cursors through the list of objects and stores the results of sp_helprotect in a temp table then displays the results. DECLARE helpprotect CURSOR READ_ONLY FOR SELECT name FROM sysobjects WHERE [...]
List Members in Each Database Role
We receiving have been working with auditors to provide list of SQL logins that exist in each database role defined. Here is a short script to return all the members of each group that can easily be copied into Excel and shared with auditors and anybody else looking for this information. It basically cursors through [...]
SQLskills Immersion Event on Internals and Performance – Chicago May 2011
I recently attend the SQLskills Immersion Training Event on Internals and Performance in Chicago. I have to say I was already impressed with Paul Randal and Kimberly Tripp’s knowledge of SQL Server given my past experience at conferences and their blogs. But that said was even more impressed after spending a week with them. This [...]