title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | f1_keywords | helpviewer_keywords | monikerRange | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
External Scripts Enabled (server configuration option) |
Learn about the external scripts enabled option in SQL Server. After turning it on, you can execute external scripts in supported languages such as R or Python. |
MikeRayMSFT |
mikeray |
06/30/2020 |
sql |
machine-learning-services |
language-reference |
|
|
>=sql-server-2016||>=sql-server-linux-ver15||=azuresqldb-mi-current |
[!INCLUDE sqlserver2016-asdbmi]
Use the external scripts enabled option to enable the execution of scripts with certain remote language extensions. This property is OFF by default. When Machine Learning Services is installed, setup can optionally set this property to true.
You must enable the external script enabled option before you can execute an external script using the sp_execute_external_script procedure. Use sp_execute_external_script to execute scripts written in a supported language such as R or Python.
-
For [!INCLUDEsssql16-md]
[!INCLUDErsql_productname] includes support for the R language in [!INCLUDEsssql16-md], and a set of R workstation tools and connectivity libraries.
Install the R Services feature during [!INCLUDEssNoVersion] setup to enable the execution of R scripts.
-
For [!INCLUDEsssql17-md] and later
[!INCLUDErsql-productnamenew-md] has support for both the R and Python languages.
Install the Machine Learning Services feature during [!INCLUDEssNoVersion] setup to enable the execution of external scripts. Be sure to select at least one language during initial setup: either R or Python, or both.
-
For [!INCLUDEsssql19-md] and later[!INCLUDErsql-productnamenew-md] has support for all R, Python, Java and other third party languages.
Install the Machine Learning Services and Language Extensions feature during [!INCLUDEssNoVersion] setup to enable the execution of external scripts for any supported language.
After setup, to enable external scripts, execute the following script:
sp_configure 'external scripts enabled', 1;
RECONFIGURE WITH OVERRIDE;
For more information, see Install SQL Server Machine Learning Services (Python and R) on Windows or Linux.