在sql server 2008中创建新角色

发布于 2024-09-25 02:07:19 字数 153 浏览 0 评论 0原文

我为新闻网站的 cms 创建了一个数据库系统。我只想在我的数据库系统中拥有 4 个角色:管理员、作者、编辑和访客(只阅读网页)。但是每个数据库系统中都有一些预定义的角色,例如 sys 和 db_owner 等等,它们是不可删除的,但我只想要上面提到的 4 个角色。我怎样才能实现这个目标?谢谢

I have created a database system for a cms for a news website. I want to have only 4 roles in my db system : Admin, Author, Editor and Guest ( who only read the web pages). But there are some pre-defined roles in every db system like sys and db_owner and… and they are not removable but I want the only 4 roles I mentioned above. How can I aim this goal? thanks

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

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

发布评论

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

评论(2

逐鹿 2024-10-02 02:07:19

啊,你不能!

另外,我认为您不需要调整数据库系统。相反,为您的应用程序/前端/网站构建一个好的解决方案。

ah, you cannot!

Also I do not think you will need to tweak the database system. Rather, architect a good solution for your application/frontend/website.

情话难免假 2024-10-02 02:07:19

据我所知,您无法修改这些角色(除了向它们添加登录名之外)。您可以尝试使用它们,而不是绕过它们,这可能会让生活变得更轻松一些。

as far as i am aware, you can't modify those roles (besides adding logins to them). instead of working around them, you could try using them, it might make life a little bit easier.

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