R In SQL Server 2016

大兔子大兔子 提交于 2019-12-22 12:36:09

问题


Trying to execute the test script that MSDN provides to make sure R is enabled, but it throws the following error,

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.

I have made sure i run the

Exec sp_configure  'external scripts enabled', 1  

Reconfigure with override

Statement and then i made sure the configuration setting was set to 1 which it is, and restarted the services inbetween checking and afterwards, but no luck.

I've also made sure i'm not side loading any other R open platform ide's or other versions of SQL Server versions except 2016 developer.


回答1:


Run:

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

Then restart the service from services.msc or restart your system.




回答2:


Just restart the SQL Server from 'Services' or restart from Sql Server Management Studio




回答3:


You have to run RECONFIGURE; after executing sp_configure 'external scripts enabled', 1; query before restarting the server.



来源:https://stackoverflow.com/questions/38148268/r-in-sql-server-2016

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!