Cannot use the special principal 'sa'

后端 未结 1 1344
半阙折子戏
半阙折子戏 2021-01-16 14:56

When I try to run the command:

EXEC master..sp_addsrvrolemember @loginame = N\'sa\', @rolename = N\'serveradmin\'
GO

I get the error:

1条回答
  •  说谎
    说谎 (楼主)
    2021-01-16 15:46

    'sa' is a reserved login for the sysadmin; it's already a member of the sysadmin group, which trumps all other groups. You don't need to add it to any roles, so why are you trying to do that?

    0 讨论(0)
提交回复
热议问题