Skip to content

Commit 0fe212f

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/sql-docs-pr into perform-a-planned-manual-failover-of-an-availability-group-sql-server
2 parents 97fb4ba + 4d6ff75 commit 0fe212f

3,944 files changed

Lines changed: 28077 additions & 14050 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/advanced-analytics/known-issues-for-sql-server-machine-learning-services.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
title: "Known issues in Machine Learning Services | Microsoft Docs"
3-
ms.date: "11/03/2017"
4-
ms.prod: "sql-server-2016"
3+
ms.date: "11/15/2017"
4+
ms.prod:
5+
- "sql-server-2016"
6+
- "sql-server-2017"
57
ms.reviewer: ""
68
ms.suite: ""
79
ms.technology:
@@ -12,7 +14,7 @@ ms.assetid: 2b37a63a-5ff5-478e-bcc2-d13da3ac241c
1214
caps.latest.revision: 53
1315
author: "jeannt"
1416
ms.author: "jeannt"
15-
manager: "jhubbard"
17+
manager: "cgronlund"
1618
ms.workload: "On Demand"
1719
---
1820
# Known issues in Machine Learning Services
@@ -44,6 +46,18 @@ This issue is fixed in the release version. If you encounter this issue, as a wo
4446

4547
**Applies to:** SQL Server 2017 with Python
4648

49+
### Unable to install SQL Server machine learning features on a domain controller
50+
51+
If you try to install SQL Server 2016 R Services or SQL Server 2017 Machine Learning Services on a domain controller, setup fails, with these errors:
52+
53+
>*"An error occurred during the setup process of the feature."*
54+
>
55+
>*"Cannot find group with identity..."*
56+
>
57+
>*"Component error code: 0x80131509"*
58+
59+
The failure occurs because, on a domain controller, the service cannot create the 20 local accounts required to run machine learning. In general, we do not recommend installing SQL Server on a domain controller. For more information, see [Support bulletin 2032911](https://support.microsoft.com/en-us/help/2032911/you-may-encounter-problems-when-installing-sql-server-on-a-domain-cont).
60+
4761
### Install the latest service release to ensure compatibility with Microsoft R Client
4862

4963
If you install the latest version of Microsoft R Client and use it to run R on SQL Server in a remote compute context, you might get an error like the following:

docs/advanced-analytics/r/install-additional-r-packages-on-sql-server.md

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: "Install additional R packages on SQL Server | Microsoft Docs"
3-
ms.custom:
4-
- "SQL2016_New_Updated"
5-
ms.date: "10/02/2017"
6-
ms.prod: "sql-server-2016"
3+
ms.date: "11/15/2017"
4+
ms.prod:
5+
- "sql-server-2016"
6+
- "sql-server-2017"
77
ms.reviewer: ""
88
ms.suite: ""
99
ms.technology:
@@ -14,7 +14,7 @@ ms.assetid: 21456462-e58a-44c3-9d3a-68b4263575d7
1414
caps.latest.revision: 16
1515
author: "jeannt"
1616
ms.author: "jeannt"
17-
manager: "jhubbard"
17+
manager: "cgronlund"
1818
ms.workload: "On Demand"
1919
---
2020
# Install additional R packages on SQL Server
@@ -24,7 +24,8 @@ This article describes how to install new R packages to an instance of SQL Serve
2424
> [!IMPORTANT]
2525
> The process for adding new packages differs depending on the version of SQL Server you are running, and the tools you are using.
2626
27-
**Applies to:** SQL Server 2016 R Services, SQL Server 2017 Machine Learning Services
27+
**Applies to:** [!INCLUDE[sssql15-md](../../includes/sssql15-md.md)] [!INCLUDE[rsql-productname-md](../../includes/rsql-productname-md.md)] and [!INCLUDE[sssql17-md](../../includes/sssql17-md.md)]
28+
[!INCLUDE[rsql-productnamenew-md](../../includes/rsql-productnamenew-md.md)]
2829

2930
## Overview of package installation process
3031

@@ -34,7 +35,9 @@ This article describes how to install new R packages to an instance of SQL Serve
3435

3536
Be sure to check for package dependencies and get any related packages that might be needed during installation. To prepare a collection of packages and their dependencies, we recommend the [miniCRAN package](#bkmk_packageDependencies).
3637

37-
3. Package installation methods differ depending on whether the server has internet access, and on your version of SQL Server. The recommended processes are as follows:
38+
If you get download or installation errors, try a different mirror site.
39+
40+
3. How you install the package depends on whether the server has internet access, and on your version of SQL Server. The recommended processes are as follows:
3841

3942
**Package installation for SQL Server 2016**
4043

@@ -56,13 +59,13 @@ This article describes how to install new R packages to an instance of SQL Serve
5659

5760
## Install new packages
5861

59-
This section provide detailed procedures for the following key package installation scenarios. The best method for you to use depends on these factores:
62+
This section provide detailed procedures for key package installation scenarios. Choose the best method, depending on:
6063

6164
- The version of SQL Server you are using
6265

63-
- Whether you are the sole owner of the instance, or are trying to mamaneg packages for multiple people using database roles.
66+
- Whether you are the sole owner of the instance, or are trying to manage packages for multiple people using database roles.
6467

65-
- Whether you are installing one packages, or multiple packages with dependencies
68+
- Whether you are installing one package, or multiple packages with dependencies
6669

6770
**Use SQL Server package management**
6871

@@ -80,7 +83,7 @@ If your instance supports package management features, you can use either T-SQL
8083

8184
[Install multiple packages from a miniCRAN repository](#bkmk_minicran)
8285

83-
**Use conventional R rools**
86+
**Use conventional R tools**
8487

8588
If you are using an earlier version of SQL Server R services, follow these instructions to install packages using conventional R tools. Optionally, use miniCRAN to prepare a collection of packages for installation.
8689

@@ -100,15 +103,15 @@ If you are using an earlier version of SQL Server R services, follow these instr
100103

101104
2. Connect to the server using an account that has permissions to install new packages, using one of the supported database roles described in this topic: [R package management for SQL Server](r-package-management-for-sql-server-r-services.md)
102105

103-
3. Copy the zipped file containing the R package you want to install to a folder on the server computer, such as your **Users** or **Documents** folder. You cannot add a package from a networked drive or from a folder on the client computer. If you have used miniCRAN to create a package repository, copy the package repository in its entirety to any local folder on the server: i.e., not on a networked drive.
106+
3. Copy the zipped file containing the R package you want to install to a folder on the server computer, such as your **Users** or **Documents** folder. You cannot add a package from a networked drive or from a folder on the client computer. If you have used miniCRAN to create a package repository, copy the package repository in its entirety to any local folder on the server: that is, not on a networked drive.
104107

105108
If you don't have access to any folders on the server, you can pass the package contents in binary format. See [CREATE EXTERNAL LIBRARY](https://docs.microsoft.com/sql/t-sql/statements/create-external-library-transact-sql) for an example.
106109

107110
4. From the database where you want to use the package, run the [CREATE EXTERNAL
108111
LIBRARY](https://docs.microsoft.com/sql/t-sql/statements/create-external-library-transact-sql)
109112
statement.
110113

111-
For this example, we'll assume that your account has permission to upload new packages to the server and install them to shared scope in the database.
114+
For this example, we assume that your account has permission to upload new packages to the server and install them to **shared** scope in the database.
112115

113116
The following statement adds the release version of the [zoo](https://cran.r-project.org/web/packages/zoo/index.html) package into the current database context, from a local fileshare.
114117

@@ -132,7 +135,7 @@ If you are using an earlier version of SQL Server R services, follow these instr
132135
library(zoo)'
133136
```
134137

135-
If successful, the **Messages** window should report a message such as "package 'zoo' successfully unpacked and MD5 sums checked". If a required package is already installed, the installation process will attach and load the required package.
138+
If successful, the **Messages** window should report a message such as "package 'zoo' successfully unpacked and MD5 sums checked." If a required package is already installed, the installation process then attaches and loads the required package.
136139

137140
> [!NOTE]
138141
> If a required package is not available, an error is returned: "there is no package called \<required_package\>".
@@ -145,7 +148,7 @@ If you have already enabled package management on the instance, you can install
145148

146149
1. Before you start, ensure that these conditions are met:
147150

148-
+ The R client has the latest version of RevoScale. Pre-release versions did not include some package management functions.
151+
+ Use the latest version of Microsoft R Client, which includes updates to RevoScale.
149152
+ Package management has been enabled on the instance and on the database.
150153
+ You have permission to one of the database management roles.
151154

@@ -215,7 +218,7 @@ You can use R tools to install new packages on both SQL Server 2016 and SQL Serv
215218

216219
When asked for a mirror site, select any site that is convenient for your location.
217220

218-
If the target package depends on additional packages, the R installer will automatically download the dependencies and install them for you.
221+
If the target package depends on additional packages, the R installer automatically downloads the dependencies and installs them for you.
219222

220223
**Install package manually or on a computer with no Internet access**
221224

@@ -231,7 +234,7 @@ You can use R tools to install new packages on both SQL Server 2016 and SQL Serv
231234

232235
### <a name="bkmk_minicran"></a> Install multiple packages from a miniCRAN repository
233236

234-
If you are installing packages from a miniCRAN repository, the overall process is very similar to installing a package from a single zipped file. However, rather than uploading an individual package in zipped format, the miniCRAN repository contains the target package as well as any related required packages.
237+
The overall process of installing packages from a miniCRAN repository is similar to installing a package from a single zipped file. However, rather than uploading an individual package in zipped format, the miniCRAN repository contains the target package as well as any related required packages.
235238

236239
1. Prepare the miniCRAN repository and then copy the zipped file to a local folder on the server.
237240

@@ -255,19 +258,19 @@ If you are installing packages from a miniCRAN repository, the overall process i
255258
library(randomForest)'
256259
```
257260

258-
If successful, the **Messages** window should report a message such as "package 'randomForest' successfully unpacked and MD5 sums checked" and also "Finished chained execution".
261+
If successful, the **Messages** window should report a message such as "package 'randomForest' successfully unpacked and MD5 sums checked" and "Finished chained execution".
259262

260263
## Package installation tips
261264

262265
This section provides assorted tips and sample code related to R package installation on SQL Server.
263266

264267
### <a name="packageVersion"></a> Get the correct package version and format
265268

266-
There are multiple sources for R packages, the best known among them being CRAN and Bioconductor. The official site for the R language (<https://www.r-project.org/>) lists many of these resources. Many packages are also published to GitHub, where you can obtain the source code. However, you may also have been given R packages that were developed by someone in your company.
269+
There are multiple sources for R packages, the best known among them being CRAN and Bioconductor. The official site for the R language (<https://www.r-project.org/>) lists many of these resources. Many packages are published to GitHub, where you can obtain the source code. However, you may have been given R packages that were developed by someone in your company.
267270

268271
Regardless of the source, you must ensure that the package you want to install has a binary format for the Windows platform. Otherwise the downloaded package cannot run in the SQL Server environment.
269272

270-
You should also determine whether the package is compatible with the version of R that is running in SQL Server.
273+
Before downloading, you should also check whether the package is compatible with the version of R that is running in SQL Server.
271274

272275
### <a name="bkmk_zipPreparation"></a> Download package as zipped file
273276

@@ -285,7 +288,7 @@ For example, the following procedure describes now to get the correct version of
285288

286289
This process creates a local copy of the package. You can then install the package, or copy the zipped package to a server that does not have internet access.
287290

288-
For more information about the contents of the zip file format, and how to create an R package, we recommend this tutorial, which you can download in PDF format from the R project site: [Freidrich Leisch: Creating R Packages](http://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf).
291+
For more information about the contents of the zip file format, and how to create an R package, we recommend this tutorial, which you can download in PDF format from the R project site: [Creating R Packages](http://cran.r-project.org/doc/contrib/Leisch-CreatingPackages.pdf).
289292

290293
### <a name="bkmk_packageDependencies"></a> Get package dependencies
291294

docs/advanced-analytics/r/install-pretrained-models-sql-server.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Install pretrained machine learning models on SQL Server | Microsoft Docs"
3-
ms.date: "11/03/2017"
3+
ms.date: "11/15/2017"
44
ms.prod: "sql-server-2017"
55
ms.reviewer: ""
66
ms.suite: ""
@@ -71,27 +71,27 @@ For more information about deep learning networks and their implementation using
7171

7272
+ To use models with **R_SERVICES**, use the following syntax and paths:
7373

74-
`RSetup.exe /install /component MLM /version <version> /language 1033 /destdir <SQL_DB_instance_folder>\R_SERVICES\library\MicrosoftML\mxLibs\x64`
74+
`RSetup.exe /install /component MLM /version <version> /language 1033 /destdir <SQL_DB_instance_folder>\R_SERVICES`
7575

7676
For example, to enable use of the latest version of the pretrained models for R, in a default instance of SQL Server 2017, you would run this statement:
7777

78-
`RSetup.exe /install /component MLM /version 9.2.0.24 /language 1033 /destdir "C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\R_SERVICES\library\MicrosoftML\mxLibs\x64"`
78+
`RSetup.exe /install /component MLM /version 9.2.0.24 /language 1033 /destdir "C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\R_SERVICES"`
7979

8080
On a named instance, the command would be something like this:
8181

82-
`RSetup.exe /install /component MLM /version 9.2.0.24 /language 1033 /destdir "C:\Program Files\Microsoft SQL Server\MSSQL14.MyInstanceName\R_SERVICES\library\MicrosoftML\mxLibs\x64"`
82+
`RSetup.exe /install /component MLM /version 9.2.0.24 /language 1033 /destdir "C:\Program Files\Microsoft SQL Server\MSSQL14.MyInstanceName\R_SERVICES"`
8383

8484
+ To use models with **PYTHON_SERVICES**, use the following syntax and paths:
8585

86-
`RSetup.exe /install /component MLM /version <version> /language 1033 /destdir <SQL_DB_instance_folder>\PYTHON_SERVICES\Lib\site-packages\microsoftml\mxLibs`
86+
`RSetup.exe /install /component MLM /version <version> /language 1033 /destdir <SQL_DB_instance_folder>\PYTHON_SERVICES`
8787

8888
For example, to enable use of the latest version of the pretrained models for Python, in a default instance of SQL Server 2017, you would run this statement:
8989

90-
`RSetup.exe /install /component MLM /version 9.2.0.24 /language 1033 /destdir "C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\PYTHON_SERVICES\Lib\site-packages\microsoftml\mxLibs"`
90+
`RSetup.exe /install /component MLM /version 9.2.0.24 /language 1033 /destdir "C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\PYTHON_SERVICES"`
9191

9292
On a named instance, the command would be something like this:
9393

94-
`RSetup.exe /install /component MLM /version 9.2.0.24 /language 1033 /destdir "C:\Program Files\Microsoft SQL Server\MSSQL14.MyInstanceName\PYTHON_SERVICES\Lib\site-packages\microsoftml\mxLibs"`
94+
`RSetup.exe /install /component MLM /version 9.2.0.24 /language 1033 /destdir "C:\Program Files\Microsoft SQL Server\MSSQL14.MyInstanceName\PYTHON_SERVICES"`
9595

9696
5. For the version parameter, the following values are supported:
9797

docs/advanced-analytics/r/security-considerations-for-the-r-runtime-in-sql-server.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ To minimize dependency on ODBC calls to external data sources, you might also pe
5454

5555
## No support for encryption at rest
5656

57-
Transparent Data Encryption is not supported for data sent to or received from the external script runtime. As a consequence, encryption at rest **is not** applied to any data that you use in R or Python scripts, any data saved to disk, or any persisted intermediate results.
57+
[Transparent Data Encryption (TDE)](https://docs.microsoft.com/sql/relational-databases/security/encryption/transparent-data-encryption) is not supported for data sent to or received from the external script runtime. The reason is that R (or Python) runs outside the SQL Server process and thus data used by the external runtime is not protected by the encryption features of the database engine. This behavior is no different than any other client running on the SQL Server computer that reads data from the database and makes a copy.
58+
59+
As a consequence, TDE **is not** applied to any data that you use in R or Python scripts, or to any data saved to disk, or to any persisted intermediate results. However, other types of encryption, such as Windows BitLocker encryption or third-party encryption applied at hte file or folder level, still apply.
60+
61+
In case of [Always Encrypted](https://docs.microsoft.com/sql/relational-databases/security/encryption/overview-of-key-management-for-always-encrypted), external runtimes do not have access to the encryption keys; therefore, data cannot be sent to the scripts.
5862

5963
## Resources
6064

docs/advanced-analytics/r/set-up-sql-server-r-services-in-database.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Set up SQL Server Machine Learning Services (In-Database) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "10/31/2017"
4+
ms.date: "11/15/2017"
55
ms.prod:
66
- "sql-server-2016"
77
- "sql-server-2017"
@@ -14,6 +14,8 @@ ms.topic: "article"
1414
keywords:
1515
- "installing SQL Server R Services"
1616
- "installing SQL Server Machine Learning Services"
17+
- "Set up R Services"
18+
- "install SQL machine learning"
1719
ms.assetid: 4d773c74-c779-4fc2-b1b6-ec4b4990950d
1820
caps.latest.revision: 36
1921
author: "jeannt"
@@ -33,7 +35,7 @@ This topic describes how to install and configure the following machine learning
3335

3436
[Set up machine learning in SQL Server 2017](#bkmk_2017top)
3537

36-
+ Machine learning server with **no** SQL Server
38+
+ A machine learning server with **no** SQL Server
3739

3840
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] setup also includes the option to install a "standalone" version of the machine learning components that does not require the database engine, and does not run in SQL Server. We generally recommend that you install this option on a different computer than the computer that hosts SQL Server.
3941

@@ -62,7 +64,9 @@ This article describes the process of setup that uses the [!INCLUDE[ssNoVersion]
6264

6365
+ If you used any earlier versions of the Revolution Analytics development environment or the RevoScaleR packages, or if you installed any pre-release versions of SQL Server 2016, you must uninstall them. Side-by-side installation is not supported. For help removing previous versions, see [Upgrade and Installation FAQ for SQL Server Machine Learning Services](../r/upgrade-and-installation-faq-sql-server-r-services.md).
6466

65-
+ Currently, you cannot install the machine learning features on a failover cluster. The reason is that the security mechanism that's used for isolating external script processes is not compatible with a Windows Server failover cluster environment. As a workaround, you can do either of the following:
67+
+ You cannot install SQL Server 2016 R Services or SQL Server 2017 Machine Learning Services on a domain controller. The R Services or Machine Learning Services portion of setup will fail.
68+
69+
+ You cannot install the machine learning features on a failover cluster. The security mechanism that's used for isolating external script processes is not compatible with a Windows Server failover cluster environment. As a workaround, you can do either of the following:
6670
* Use replication to copy necessary tables to a SQL Server instance with machine learning enabled.
6771
* Install machine learning on a standalone computer that uses AlwaysOn and is part of an availability group.
6872

0 commit comments

Comments
 (0)