【发布时间】: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