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.
通过脚本将用户添加到具有选择、插入、更新和删除权限但只能访问该数据库的数据库的方法是什么?
CREATE USER [user] FOR LOGIN [user] EXEC sp_addrolemember N'db_datareader', N'your_db' EXEC sp_addrolemember N'db_datawriter', N'your_db' GO
在 SQL Server 2005 中创建一个新的 db 用户