The SQL Dude!

On-Disk & In-Memory 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's avatar

    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's avatar

    coolmusings said

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

Leave a comment