小编Aus*_*pex的帖子

无法使用 Windows (Active Directory) 组登录作为服务器主体执行...

我正在运行 SQL Server 2012(我知道,古老的......)并试图找出为什么用户没有执行某些过程的权限。

我以 登录sa,以防万一我自己的 id 没有足够的权限来冒充。

当我尝试时:

EXECUTE AS LOGIN = 'MBA\SAHFOS_GRP'
Run Code Online (Sandbox Code Playgroud)

我收到消息:

Cannot execute as the server principal because the principal "MBA\SAHFOS_GRP" does not exist, this type of principal cannot be impersonated, or you do not have permission.
Run Code Online (Sandbox Code Playgroud)

据我所知,它满足要求:

select * from sys.server_principals where name = 'MBA\SAHFOS_GRP'

name    principal_id    sid type    type_desc   is_disabled create_date modify_date default_database_name   default_language_name   credential_id   owning_principal_id is_fixed_role
MBA\SAHFOS_GRP  413 0x0105000000000005150000007CEB240DCD7C4166235F636BC8040000  G   WINDOWS_GROUP   0   2017-12-01 10:00:45.050 2017-12-01 10:00:45.057 cpr_prod    us_english  NULL    NULL    0 …
Run Code Online (Sandbox Code Playgroud)

sql-server sql-server-2012

0
推荐指数
1
解决办法
1362
查看次数

标签 统计

sql-server ×1

sql-server-2012 ×1