I was following the ‘Data Science with Microsoft SQL Server 2016’ ebook and the first step was to configure the R services.
After the installation, while going for the Hello World program with R/ SQL Server, while running the script on SQL Server, got the below error
“SQL Server was unable to communicate with the LaunchPad service. Please verify the configuration of the service.”
To resolve this, you need to launch the SQL Server 2016 Configuration Manager, you will notice that the ‘SQL Server Launchpad’ service is stopped, you need to start this.
Once you start this service, the SQL Server will allow you to run the R script.
I was running the below script
exec sp_configure ‘external scripts enabled’, 1
reconfigure with override
exec sp_execute_external_script @language =N’R’,
@script=N’OutputDataSet<-InputDataSet’,
@input_data_1 =N’select 1 as helloworld’
with result sets (([helloworld] int not null));
go
Leave a comment