The SQL Dude!

Pages that teach you the SQL way of life!

3 Responses to “T-SQL Auditing Script to find logins inheriting permission via AD Groups and verify DBO/Database owner login in a single execution”

  1. Randy said

    Having problems with it on Sharepoint databases with database names as long as 70 characters. The database name is getting truncated somehow “Could not locate entry in sysdatabases for database ‘SharePoint_AdminContent_63c2917c’. No entry found with that name. Make sure that the name is entered correctly.”

  2. coolmusings said

    Ok, just had to add square brackets around the database name in the “use” commands

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 263 other followers

%d bloggers like this: