R 在 SQL Server 2016 中

sur*_*rGe 2 sql r sql-server-2016

尝试执行 MSDN 提供的测试脚本以确保启用 R,但它抛出以下错误,

Msg 39023, Level 16, State 1, Procedure sp_execute_external_script, Line 1 [Batch Start Line 0]
'sp_execute_external_script' is disabled on this instance of SQL Server. Use sp_configure 'external scripts enabled' to enable it.
Msg 11536, Level 16, State 1, Line 1
EXECUTE statement failed because its WITH RESULT SETS clause specified 1 result set(s), but the statement only sent 0 result set(s) at run time.
Run Code Online (Sandbox Code Playgroud)

我已经确定我运行了

Exec sp_configure  'external scripts enabled', 1  
Run Code Online (Sandbox Code Playgroud)

使用覆盖重新配置

声明,然后我确保配置设置设置为 1,它是,并在检查和之后重新启动服务,但没有运气。

我还确保我不会加载任何其他 R 开放平台 ide 或其他版本的 SQL Server 版本(2016 开发人员除外)。

小智 6

跑:

Exec sp_configure  'external scripts enabled', 1;
reconfigure;
Run Code Online (Sandbox Code Playgroud)

然后从services.msc系统重新启动服务或重新启动系统。