截断表格的权限

编程入门 行业动态 更新时间:2024-10-27 15:23:20
本文介绍了截断表格的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在MSSQL中,我需要授予用户什么权限才能截断表?

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

我正在尝试授予最小集合权限,但我不能使用DELETE,因为表非常大,并且我希望操作能很快。

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.

推荐答案

您需要ALTER权限:请参见权限部分这里。

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

请注意,您还可以将存储过程与EXECUTE AS一起使用,因此甚至不需要授予运行该存储过程的用户以更改权限。

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.

更多推荐

截断表格的权限

本文发布于:2023-07-22 03:09:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1183590.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表格   权限

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!