Server-wide and database-specific dbcc commands

dbcc commands are either:

System administrators can allow users to execute the dbcc command in all databases by making them valid users in those databases. However, it may be more convenient to grant dbcc to roles instead of individual users, since this allows users to use databases as a “guest” user instead of requiring that they each be added manually to the database.

From a security administration perspective, system administrators may prefer to grant permission to execute database-specific dbcc commands server-wide. For example, you can execute grant dbcc checkstorage on all databases to a user-defined role called storage_admin_role, thereby eliminating the need to execute grant dbcc checkstorage to storage_admin_role in every database.

The following commands are effective server-wide, but are not database-specific: