Search code examples
sql-serverdatabase-permissions

Permissions for truncating a table


What permission do I need to GRANT a user, in MSSQL, in order to be able to truncate a table?

I'm trying to grant the minimal set of permissions, but I can't use DELETE, because the table is very large, and I want the operation to be quick.


Solution

  • You need the ALTER permission: see the Permissions section here.

    Note that you can also use a stored procedure with EXECUTE AS, so that the user running the stored procedure does not need to even be granted the ALTER permission.