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.
我需要将用户 BUILTIN\Users 的 db_owner 字段更改为 true。
我需要在 sql server 2008 中执行的 SQL 是什么?
谢谢
试试这个:
EXEC sp_addrolemember 'db_owner', 'BUILTIN\Users'
通常,Windows 登录的格式应为:
EXEC sp_addrolemember 'db_owner', '<computer>\<user>'
MSDN 链接