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 […]

Read More »

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 […]

Read More »

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 […]

Read More »