You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Unattended installation of Machine Learning Services (In-Database)
20
22
21
-
This topic describes how to use command-line arguments with SQL Server setup to install machine learning in an instance of the database engine, in quiet mode. In an unattended installation, you do not use the interactive features of the setup wizard, and must provide all arguments required to complete installation, including licensing agreements for SQL Server and for machine learning components.
23
+
This article describes how to use command-line arguments with SQL Server setup to install the machine learning components.
22
24
23
-
**Applies to:** SQL Server 2016 R Services, SQL Server 2017 Machine Learning Services (In-Database)
25
+
By unattended installation, we mean that you do not use the interactive features of the setup wizard, and instead provide all arguments required to complete installation, including licensing agreements for SQL Server and for machine learning components on a command line or as part of a script, typically in quiet mode.
24
26
25
-
> [!IMPORTANT]
26
-
>
27
-
> In both SQL Server 2016 and SQL Server 2017, additional steps are required after setup is finished to enable the feature. These include a reconfiguration and restart of the instance. Be sure to review all steps.
27
+
+[SQL Server 2016 R Services](#bkmk_OldInstall)
28
+
+[SQL Server 2017 Machine Learning Services](#bkmk_NewInstall) with R or Python
29
+
+[Microsoft R Server or Machine Learning Server](../r/install-microsoft-r-server-from-the-command-line.md)
30
+
31
+
**Applies to: SQL Server 2017 Machine Learning Services (In-Database), SQL Server 2016 R Services**
28
32
29
33
## Prerequisites
30
34
31
35
+ You must install the database engine on each instance where you will use machine learning.
32
36
33
-
+ If the computer does not have Internet access, be sure to install the installers for the machine learning components beforehand. For download locations, see [Installing machine learning components without Internet access](../../advanced-analytics/r/installing-ml-components-without-internet-access.md).
37
+
+ If the computer does not have Internet access, be sure to download the installers for the machine learning components beforehand. See [Installing machine learning components without Internet access](../r/installing-ml-components-without-internet-access.md).
34
38
35
-
+ There are new licensing parameters related to the open source components for R and Python. You must accept the license terms with a separate argument for each language that you install. If you do not include this parameter in your command line, setup will fail.
39
+
+ There are separate licensing parameters for each of the open source components for R and Python. SQL Server 2016 supports only R; SQL Server 2017 supports both R and Python. You must accept the license terms for each language that you install. Setup fails if you do not include this parameter in your command line.
36
40
37
41
+ To complete setup without having to respond to prompts, make sure that you have identified all required arguments, including those for licensing, and for any other features that you might want to install.
38
42
39
-
> [!NOTE]
40
-
> The Mixed security mode that supports SQL logins was required in early releases. However, you might consider enabling Mixed Mode authentication to support solution development by data scientists using a SQL login.
43
+
+ The **Mixed** security mode that supports SQL logins was required in early releases. It is no longer reuqired, but you might consider enabling Mixed Mode authentication to support solution development by data scientists who use a SQL login.
41
44
42
-
## <aname="bkmk_NewInstall"></a> Unattended installation of Machine Learning Services with R
45
+
> [!IMPORTANT]
46
+
>
47
+
> Additional steps are required after setup is finished to enable the feature. These include a reconfiguration and restart of the instance. Be sure to review all items in the section on [post-installation steps] (#bkmk_PostInstall) to determine actions needed after setup completes.
43
48
44
-
The following example shows the **minimum** required features to specify in the command line when performing a silent, unattended install of SQL Server 2017 Machine Services (In-Database).
49
+
## <aname="bkmk_NewInstall"></a> Command-line installation for SQL Server 2017
45
50
46
-
1. Open an elevated command prompt, and run the following command:
51
+
The following examples shows the **minimum** required features.
Note the flags required for R in SQL Server 2017: `ADVANCEDANALYTICS`, `SQL_INST_MR`, and `IACCEPTROPENLICENSETERMS`.
53
-
2. Restart the server.
54
-
3. Perform the post-installation configuration steps as described in [this section](#bkmk_PostInstall). Another restart of the SQL Server services will be required.
53
+
> [!IMPORTANT]
54
+
> Be sure to run all commands from an elevated command prompt.
55
+
>
56
+
> After installation is complete, some additional steps are required. See [this section](#bkmk_PostInstall).
57
+
> Another restart of the SQL Server services will be required after configuration is complete.
58
+
59
+
### Install R only
60
+
61
+
The following example shows the arguments required to perform a silent, unattended install of SQL Server 2017 Machine Services (In-Database) with the R language added.
## <a name="OldInstall"></a> Unattended install of R Services (In-Database)
75
+
The following example shows the arguments required to perform a silent, unattended install of SQL Server 2017 Machine Services (In-Database) with the Python language added.
Note the flags required for Python in SQL Server 2017:
82
+
83
+
+`ADVANCEDANALYTICS`
84
+
+`SQL_INST_MPY`
85
+
+`IACCEPTPYTHONOPENLICENSETERMS`
86
+
87
+
### Install both R and Python on a named instance
88
+
89
+
The following example shows the arguments required to perform a silent, unattended install of SQL Server 2017 Machine Services (In-Database) on a named instance. Both R and Python languages are added.
## <aname="OldInstall"></a> Command-line installation for SQL Server 2016
57
96
58
-
The following example shows the **minimum** required features to specify in the command line when performing a silent, unattended install of SQL Server 2016 R Services.
97
+
The following example shows the arguments required to perform a silent, unattended install of SQL Server 2016 with the R language added.
59
98
60
-
1. Open an elevated command prompt, and run the following command:
Note the flags required for 2016 R SERVICES: `ADVANCEDANALYTICS` and `IACCEPTROPENLICENSETERMS`.
66
-
2. Restart the server.
67
-
3. Perform the post-installation configuration steps as described in [this section](#bkmk_PostInstall). Another restart of the SQL Server services will be required.
103
+
Note the flags required for 2016 R Services:
104
+
105
+
+`ADVANCEDANALYTICS`
106
+
+`IACCEPTROPENLICENSETERMS`
68
107
69
108
## <aname = "bkmk_PostInstall"></a>Additional steps after setup
70
109
110
+
You must perform the following steps after SQL Server setup is complete, regardless of which version you installed. machine learning features are not enabled by default and must be explicitly enabled.
111
+
71
112
1. After installation is complete, open a new **Query** window in [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)], and run the following command to enable the feature.
72
113
73
114
```SQL
@@ -80,4 +121,8 @@ The following example shows the **minimum** required features to specify in the
80
121
81
122
2. Restart the SQL Server service for the reconfigured instance. Doing so will automatically restart the related [!INCLUDE[rsql_launchpad](../../includes/rsql-launchpad-md.md)] service as well.
82
123
83
-
3. Additional steps might be required if you have a custom security configuration, or if you will be using the SQL Server to support remote compute contexts. For more information, see [Upgrade and Installation FAQ](../../advanced-analytics/r/upgrade-and-installation-faq-sql-server-r-services.md).
124
+
> [!IMPORTANT]
125
+
>
126
+
> Some additional steps might be required if you have a custom security configuration, or if you will be using the SQL Server as a compute context when executing R or Python code from a remote client.
127
+
>
128
+
> For more information, see [Upgrade and installation FAQ](../../advanced-analytics/r/upgrade-and-installation-faq-sql-server-r-services.md).
0 commit comments