Question

I get the following error message in SQL Server 2005:

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

Which minimum role do I have to give to user in order to run the command?

Was it helpful?

Solution

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

OTHER TIPS

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

ALTER AUTHORIZATION ON Tablename TO [domain\username]

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top