2012-12-11 320 views
4

我试图从远程运行的服务器上登录到SQL Server实例,同时作为我自己进行远程访问。Sql Server - 修复错误错误:18456,严重性:14,状态:11

我不断收到标准登录失败错误,并在错误日志中看到“错误:18456,严重性:14,状态:11”。

登录使用Windows身份验证 - 这是一个奇怪的位。我可以使用相同的身份验证从我自己的机器上正确登录,而不是在安装数据库的计算机上。

任何想法?

谢谢, 戴夫

回答

9

How does UAC work?

When an administrator logs on, this version of Windows creates two separate access tokens for the user: a standard user access token and an administrator access token. The standard user access token contains the same user-specific information as the administrator access token, but the administrative Windows privileges and SIDs have been removed. The standard user access token is used to start applications...

当您在您的本地管理员令牌已经登录被剥离。由于您授予您的实例访问权限为BUILTIN\Administrators,因此您被锁定在实例外。远程进行身份验证时,管理员令牌将保留并可以访问。如果您在启动应用程序时选择RunAs \ Administrator(SSMS?),您将获得访问权限。

解决的办法是明确地授予自己访问:

create login [domain\you] from windows; 
exec sp_addsrvrolemember 'domain\you','sysadmin'; 
相关问题