SSMS客户端报错BUG

用户本地连接

blob.png

 

 

打开数据库报错

blob.png

 

 

 The server principal "epointztb" is not able to access the database "epointbidhzchunanpb55" under the current security context. (Microsoft SQL Server,错误: 916)

 

看报错信息是epointztb这个账号本身就没有 epointbidhzchunanpb55 这个库的权限 ,但为什么会自动切换到这个账号下呢?

 

 我再测试机 上连接测试

blob.png

 

blob.png

 

 

在用户本地用sqlcmd测试没问题,sqlcmd -S "***,**" -Uepointztb -P## -d master

 

blob.png

 

 

我们的ssms版本信息

 

blob.png

 

 

用户的版本信息

 

blob.png

 

最后发现可能是微软老的SSMS版本有bug

 

https://connect.microsoft.com/SQLServer/feedback/details/354291/the-server-principal-is-not-able-to-access-the-database-under-the-current-security-context-microsoft-sql-server-error-916

原文地址:https://www.cnblogs.com/mingmingrose/p/4179190.html