gpt4 book ai didi

sql - 截断表权限

转载 作者:行者123 更新时间:2023-12-04 14:33:40 25 4
gpt4 key购买 nike

我们需要什么最小权限来截断表?除了 DDLAdmin。什么是授予用户在 SQL 2008 R2 上截断用户的权限的最佳实践

最佳答案

在线书籍中截断表格文档 here

Permissions

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.

关于sql - 截断表权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6063451/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com