Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要帮助来使用 sql server 2008 将 GRANT CREATE、ALTER BUT DENY DROP DB 对象设置为 db 用户。
我试过这个,但它返回错误:
use DBName GO DENY DROP TO dbUser Error: Incorrect syntax near 'DROP'.
任何帮助将非常感激。非常感谢..
射频
没有DROP权限,但您需要使用DELETE
DROP
DELETE
在您的情况下,代码如下
USE DBName GO DENY DELETE to dbuser
http://technet.microsoft.com/en-us/library/ms188338.aspx