拒绝删除 Sql Server 2008 中的数据库对象

发布于 2024-08-29 22:21:01 字数 243 浏览 1 评论 0原文

我需要帮助来使用 sql server 2008 将 GRANT CREATE、ALTER BUT DENY DROP DB 对象设置为 db 用户。

我已经尝试过此操作,但它返回错误:

use DBName
GO
DENY DROP TO dbUser
Error: Incorrect syntax near 'DROP'.

任何帮助将不胜感激。 非常感谢

..rfs

I need help to set GRANT CREATE, ALTER BUT DENY DROP DB Objects to db users using sql server 2008.

I've tried this but it returns error:

use DBName
GO
DENY DROP TO dbUser
Error: Incorrect syntax near 'DROP'.

Any help would be much appreciated.
Many thanks..

rfs

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遮了一弯 2024-09-05 22:21:01

没有 DROP 权限,但您需要

在案例中使用 DELETE 代码如下

USE DBName
GO
DENY DELETE to dbuser

http://technet.microsoft.com/en-us/library/ms188338.aspx

There is no DROP permission but instead you need to use DELETE

in your case code will be as follows

USE DBName
GO
DENY DELETE to dbuser

http://technet.microsoft.com/en-us/library/ms188338.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文