Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User does not have permission to run DBCC DBREINDEX

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?

like image 334
GateKiller Avatar asked Sep 11 '08 14:09

GateKiller


1 Answers

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

like image 121
Galwegian Avatar answered Nov 11 '22 05:11

Galwegian