Issue: Server principal is not able to access the database under the current security context
2014-04-15 15:22
549 查看
原帖地址:http://www.sqlmusings.com/2008/06/12/issue-server-principal-is-not-able-to-access-the-database-under-the-current-security-context/
Issue:
We backed up and restored one database from one server to another. Sounds simple, right? Should be. This isn’t one of those days
So we get this issue:
The server principal “myuser” is not able to access the database “mydb” under the current security context.
Resolution:
Thanks to the following forums, we were able to troubleshoot. Steps follow:
1. In order to ‘Map’ the Login, the Login must not already be as User on the database.
Go to ServerName -> Databases -> DatabaseName -> Security -> Users
2. Delete the Login from the list of database Users before mapping the Login to the database.
3. In Object Explorer -> Server -> Security -> Logins, right click and choose Properties
4. The ‘User Mapping’ page should list all databases on the server with a check mark on the databases that the Login has been mapped to.
Map the Login by checking the box next to the database name.
You may also need to add some fixed database roles, just to get your stuff working first:
ie, db_datareader and public.
5. Click OK
6. Rejoice
References:
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1638146&SiteID=17
http://www.sqlservercentral.com/Forums/Topic362018-359-1.aspx
Issue:
We backed up and restored one database from one server to another. Sounds simple, right? Should be. This isn’t one of those days
So we get this issue:
The server principal “myuser” is not able to access the database “mydb” under the current security context.
Resolution:
Thanks to the following forums, we were able to troubleshoot. Steps follow:
1. In order to ‘Map’ the Login, the Login must not already be as User on the database.
Go to ServerName -> Databases -> DatabaseName -> Security -> Users
2. Delete the Login from the list of database Users before mapping the Login to the database.
3. In Object Explorer -> Server -> Security -> Logins, right click and choose Properties
4. The ‘User Mapping’ page should list all databases on the server with a check mark on the databases that the Login has been mapped to.
Map the Login by checking the box next to the database name.
You may also need to add some fixed database roles, just to get your stuff working first:
ie, db_datareader and public.
5. Click OK
6. Rejoice
References:
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1638146&SiteID=17
http://www.sqlservercentral.com/Forums/Topic362018-359-1.aspx
相关文章推荐
- The server principal "sa" is not able to access the database "xxxx" under the current security context
- SQLBackupAndFTP The server principal "NT AUTHORITY\SYSTEM" is not able to access the database "xxxx"
- SQL Agent Job 报“Access to the remote server is denied because the current security context is not trusted”
- 138 Your database instance is running. You are not able to access Oracle Enterprise Manager Database
- CocoaPods问题: CocoaPods was not able to update the `master` repo.if it is a unexpected issue and
- Access to the database file is not allowed. [ File name = ***\DataBase.sdf
- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.报该错误的一种原因。
- The SQL Server Service Broker for the current database is not enabled
- The origin server did not find a current representation for the target resource or is not willing to
- ArcGIS Server注册共享文件夹报错/地理数据库同理【the arcgisserver is not able to connect to the specified directory】
- The origin server did not find a current representation for the target resource or is not willing to
- The origin server did not find a current representation for the target resource or is not willing to
- The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
- The origin server did not find a current representation for the target resource or is not willing to
- The origin server did not find a current representation for the target resource or is not willing to
- Enterprise Manager is not able to connect to the database instance.(ORA-28001)错误的解决方法[转载]
- The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported.
- cocoapods was not able to update the 'master' repo.if it is a unexpected issue and persists you can
- WINDOW7 Cake is NOT able to connect to the database.
- eclipse ERROR: Unable to add module to the current project as it is not of ...