简体   繁体   中英

R In SQL Server 2016

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.

Run:

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

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM