Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Granting Truncate permission

Author  Topic 

karrojo
Starting Member

26 Posts

Posted - 2008-07-21 : 21:09:44

Hi all SQL wiz. I have a question in granting truncate permission. Since truncate command can only be used by system administrator, can u grant it to a specific user and he can only truncate a specific table? Tnx in advance

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-21 : 21:26:35
you don't need sysadmin for Truncate table permission. You need to give him "ALter table" permission.
Go to Top of Page

karrojo
Starting Member

26 Posts

Posted - 2008-07-21 : 23:46:09
Hi Sodeep... tnx for the reply... but i don't want to modify the table... i would like to grant a truncate permission since it is much faster than using the delete command. My concern is that truncate command is used by SysAdmin and I only want to grant truncate permission on a specific table only.
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-07-22 : 10:12:49
That's why I said:
Go to that specific table-properties-permission - give alter table permission. Since Truncate is DDL command ,you need to give ALter table.
Go to Top of Page
   

- Advertisement -