User does not have permission to run DBCC DBREINDEX

In SQL Server 2005, you receive the following error message:

User '<username>' does not have permission to run DBCC DBREINDEX for object '<table>'.

What is the minimum role I need to give a user to run a command?

+5
source share
3 answers

You need to be a member of the db_ddladmin or db_owner AFAIK roles

+10
source

Caller must own the table or be a member of the sysadmin fixed server role, the db_owner fixed database role, or the db_ddladmin fixed database role.

DBCC DBREINDEX (Transact-SQL) @MSDN

+1
source

ALTER AUTHORIZATION ON Tablename TO [domain name \ username]

0
source

All Articles