向 SQL Server 2005 中的应用程序角色授予权限
我必须设置一个 .net 应用程序来连接到新数据库中的 SQL Server 2005。该应用程序使用应用程序角色在服务器上进行身份验证,然后处理应用程序中的所有安全检查。
我已成功创建应用程序角色,应用程序可以成功登录数据库。但是,该角色没有查询任何数据库对象的权限。
如何将角色 db_datareader 和 db_datawriter 分配给应用程序角色,以便它对数据库的所有表具有完全的读写访问权限?或者是否有另一种方法可以让角色完全访问表、查询和存储过程。
(该应用程序是在 sql-server 2000 上开发的,但是已经在 SQL Server 2005 上运行了它的实例,但我还没有看到应用程序角色具有所需权限是如何完成的。)
请注意,手动授予应用程序角色不能选择访问每个对象,因为应用程序会动态创建新对象(表、查询和 sp),并且应用程序还必须有权访问这些新对象,而无需更改角色安全配置。
I have to setup a .net-application that connects to an SQL Server 2005 in a new database. The app uses an application role to authenticate on the server and handles then all security-checks in the app.
I have successfully created the application role and the app can successfully logon to the db. However, the role has no permissions to query any database-object.
How do I assign the roles db_datareader and db_datawriter to the application role so that it has full read-and write access to all tables of the database? Or is there another way to give the role full access to the tables, queries and stored-procedures.
(The app was developped on sql-server 2000, however there are already running instances of it with SQL Server 2005 but I have not seen how it is done that the application role has the desired rights.)
Please note, giving the app role manualy access to every object is not an option because the app creates dynamicly new objects (tables, queries and sp's) and the app must also have access to these new objects without change the roles security configuration.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
适合阅读:
适合写作:
For reading:
For writing: