SQL 服务器用户过多

Too many SQL Server users

我们有一个带有 SQL 服务器 运行 的虚拟机。今天我想在框中添加一个用户,我注意到有 20 SQL 服务器 windows 用户。我不知道这些是从哪里来的。描述说 Local user account for execution of R scripts in SQL Server instance MSSQLSERVER

有人知道这些似乎凭空出现的帐户是怎么回事吗?如果我删除它们会怎样?

您运行宁 SQL Server 2016 启用了 R Services。这些帐户是作为安装的一部分创建的,用于 运行 从 SQL.

调用时的 R 进程

来自MSDN documentation:

Step 3: Enable Implied Authentication for Launchpad Accounts

During setup, 20 new Windows user accounts are created for the purpose of running tasks under the security token of the SQL Server Trusted Launchpad service. When a user sends an R script from an external client, SQL Server will activate an available worker account, map it to the identity of the calling user, and run the R script on behalf of the user. This is a new service of the database engine that supports secure execution of external scripts, called implied authentication.

You can view these accounts in the Windows user group, SQLRUserGroup. If you need to run R scripts from a remote data science client and are using Windows authentication, these worker accounts must be given permission to log into the SQL Server instance on your behalf.