DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: truncate table privilege

  1. #1
    Join Date
    Aug 2000
    Posts
    143
    Does anyone know the syntax to grant the truncate table privilege to a role

  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    grant drop any table to role_name

  3. #3
    Join Date
    Aug 2000
    Posts
    143
    Thanks pando, I assume theres no way to explictly name the table that can be truncated?

  4. #4
    Join Date
    Jan 2002
    Posts
    16
    Nop. Grant to drop any table is not selective.

  5. #5
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    If you don't want to give DROP ANY TABLE priviledge (I know I would feel uncomfortable when giving such a powerful priviledge to any user) to a user in order to enable him to truncate some tables that he doesn't own, the only other alternative is:

    - First, as an owner of a table create a procedure that truncates that table
    - Then grant execute priviledge on that procedure to a user
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width