SQL Admin Scripts: A Practical Toolkit for Managing Servers and Databases
This toolkit includes everything from listing account permissions and linked servers to creating flexible backup solutions and querying server version details.
List SQL account login type
List SQL Database Account Access and Permissions
List Server Principal Objects and Granted Permissions for Each Principal (Filtered by Role)
List All User, Groups, and Users with Their Associated Groups
List Linked SQL Servers and Their Logins
List of Non-System SQL Databases with Online Status
Backup and Restore Database to New Location and Name
Backup All Online User Databases to Network Location
List of Accounts with Type and Status (Enabled/Disabled)