【问题标题】:R In SQL Server 2016R 在 SQL Server 2016 中
【发布时间】:2016-07-01 14:45:09
【问题描述】:

尝试执行 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.

我已经确定我运行了

Exec sp_configure  'external scripts enabled', 1  

使用覆盖重新配置

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

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

【问题讨论】:

  • 请提供sp_configure 'external scripts enabled'的输出。你确定你已经成功重启了实例?例如,如果您尝试从 Management Studio 重新启动 SQL Server 服务,它将弹出“您确定...?”盒子。尝试通过 services.msc 停止和启动服务以确保。

标签: sql r sql-server-2016


【解决方案1】:

运行:

Exec sp_configure  'external scripts enabled', 1;
reconfigure;

然后从services.msc重启服务或者重启你的系统。

【讨论】:

    【解决方案2】:

    只需从“服务”重新启动 SQL Server 或从 Sql Server Management Studio 重新启动

    【讨论】:

      【解决方案3】:

      您必须在执行sp_configure 'external scripts enabled', 1; 查询后运行RECONFIGURE; 才能重新启动服务器。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-06-07
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-02-13
        • 1970-01-01
        • 1970-01-01
        • 2017-02-04
        相关资源
        最近更新 更多