我的测试数据库存在权限问题。
我无法访问报告数据库,应用程序的帮助文档说要执行以下操作:
Resolution:
1. Launch the SQL Server Management Studio and connect to the database server(s) hosting the Vision and Reporting Server databases.
2. Expand the security folder.
3. Select logins and right click on the <username> user and choose properties.
4. Click the User Mapping tab
5.Make sure the following databases are selected in the Users mapped to this Login:
ReportServer
ReportServerTempDB
Your Vision databases
This maps the login/user to the respective databases.
6. As you select each database (including your Vision database), select the db_owner role in the Database role membership for: section. You must select this option for each database.
当我这样做时,出现以下错误:
"Create failed for user '<servername>\<username>'. User, group, or role '<servername>\<username>' already exists in the current database. (Microsoft SQL Server, Error: 15023)"
我已经用谷歌搜索了这个错误,并在每个数据库上尝试了以下命令:
ALTER USER [<username>] WITH LOGIN = [<username>]
该消息表明命令已成功完成,但是当我按照上面的说明尝试映射每个数据库时,仍然出现上述错误。
我想念什么?
根据Kin的评论(感谢),我尝试了以下操作:-我右键单击用户并选择:脚本登录为>拖放并创建为>新建查询窗口。-我运行了结果查询,并尝试通过再次选择其他两个数据库和db_owner来映射用户角色,但仍收到与上面相同的错误消息。
想法??