Home All Groups Group Topic Archive Search About

assign truncate rights to a user

Author
12 Jan 2006 1:49 PM
Vikram
i have a user who has delete rights on a table, but when i call truncate
table statement it says not enough permission.
how to assign truncate rights

Author
12 Jan 2006 1:56 PM
Uri Dimant
BOL says:
Permissions
TRUNCATE TABLE permissions default to the table owner, members of the
sysadmin fixed server role, and the db_owner and db_ddladmin fixed database
roles, and are not transferable.





Show quote
"Vikram" <aa@aa> wrote in message
news:u2lvh83FGHA.1288@TK2MSFTNGP09.phx.gbl...
>i have a user who has delete rights on a table, but when i call truncate
> table statement it says not enough permission.
> how to assign truncate rights
>
>
Author
12 Jan 2006 1:56 PM
Tibor Karaszi
In 2000, you can't grant this. You need to be table owner or higher. In 2005, you have some options.
From 2005 Books Online, TRUNCATE TABLE:

The minimum permission required is ALTER on table_name. TRUNCATE TABLE permissions default to the
table owner, members of the sysadmin fixed server role, and the db_owner and db_ddladmin fixed
database roles, and are not transferable. However, you can incorporate the TRUNCATE TABLE statement
within a module, such as a stored procedure, and grant appropriate permissions to the module using
the EXECUTE AS clause. For more information, see Using EXECUTE AS to Create Custom Permission Sets.




Show quote
"Vikram" <aa@aa> wrote in message news:u2lvh83FGHA.1288@TK2MSFTNGP09.phx.gbl...
>i have a user who has delete rights on a table, but when i call truncate
> table statement it says not enough permission.
> how to assign truncate rights
>
>

AddThis Social Bookmark Button