Hello Everyone. In this article I will be demonstrating how to use R Services in SQL Server 2017. Thisarticle is intended for those who have a basic idea of R language. If you don't, still no worries. You can still go through and grab it easily. I will go into details of R language in some other article.
First of all, to get started you need to have SQL Server 2016 or SQL Server 2017 installed. SQL Server 2016 supports only R language. SQL Server 2017 supports R and Python.
First of all, to get started you need to have SQL Server 2016 or SQL Server 2017 installed. SQL Server 2016 supports only R language. SQL Server 2017 supports R and Python.
Next, you need to install R Services(In-Database) manually.
- Open up SQL Server Installation Center.
- Click on "Installation" on the left pane and then on "New SQL Server stand-alone installation or add features to an existing installation".

- It will ask for the SQL Server Installation Media folder. Generally, you will get it in this path "C:\SQLServer2017Media". I have SQL Server 2017 Developer edition. That's why I select "C:\SQLServer2017Media\Developer_ENU".


- Then keep clicking Next until you reach "Installtion Type" and select "Add featurs to an existing instance of SQL Server 2017". Choose your instance.
- Select R and then click next and follow the steps to complete the installation.
This installation creates a Launchpad service for R.
Once the installation is complete, now have to configure R Services in SQL Server. So open up SQL Server Management Studio and execute the following statement ,
- EXEC sp_configure 'external scripts enabled'
It will display that the run value for the "external scripts enabled" is 0. Now you will have to change it to 1. For that, execute this statement,
- EXEC sp_configure 'external scripts enabled', 1
It will ask for another statement to execute to reconfigure,
- RECONFIGURE WITH OVERRIDE
Once it is done, open up SQL Server 2017 Configuration Manager. Restart the "SQL Server Launchpad".
Now come back to SSMS and execute the following statement again,


Suraj VissaPosted Feb 3, 2019, 5:24 PM
Hi Sourav, my run value is not getting updated for some reason. I followed all your steps, and it seemed to be executing fine. Also, I restarted the Launchpad. Would you happen to know why it is not updating to 1?
Hadshana KamalanathanPosted Jul 22, 2018, 3:55 AM
Useful one
Sagar Pandurang KapPosted Jan 2, 2018, 11:28 PM
Great kind of work....