I attended 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.
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
We receiving have been working with auditors to provide a 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