I am unable to run R scripts in SQL Server 2016 Service Pack 1 on Windows 10.
When I run:
exec sp_execute_external_script
@language =N'R',
@script=N'OutputDataSet<-InputDataSet',
@input_data_1 =N'select 1 as hello'
with result sets (([hello] int not null));
go
I get the message
Msg 39011, Level 16, State 1, Line 1
SQL Server was unable to communicate with the LaunchPad service. Please verify the configuration of the service.
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.
Both Windows Services and SQL Server Configuration Manager report that Launchpad is running.
"Exec sp_configure 'external scripts enabled'" reports 1
The SQLRUserGroup has log-on privileges.
John Kane