Skip to content

Commit 6bea60e

Browse files
committed
Bringing even with master.
2 parents c91d46c + c433c05 commit 6bea60e

107 files changed

Lines changed: 162 additions & 77 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/install/sql-machine-learning-services-windows-install.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
2-
title: Install SQL Server 2017 Machine Learning Services (In-Database) on Windows | Microsoft Docs
2+
title: Install SQL Server Machine Learning Services (In-Database) on Windows | Microsoft Docs
33
ms.prod: sql
44
ms.technology: machine-learning
55

6-
ms.date: 04/15/2018
6+
ms.date: 08/15/2018
77
ms.topic: conceptual
88
author: HeidiSteen
99
ms.author: heidist
1010
manager: cgronlun
1111
---
12-
# Install SQL Server 2017 Machine Learning Services (In-Database) on Windows
12+
# Install SQL Server Machine Learning Services (In-Database) on Windows
1313
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md-winonly](../../includes/appliesto-ss-xxxx-xxxx-xxx-md-winonly.md)]
1414

15-
The Machine Learning Services component of SQL Server adds in-database predictive analytics, statistical analysis, visualization, and machine learning algorithms. Function libraries are available in R and Python and run as external script on a database engine instance.
15+
Starting in SQL Server 2017, R and Python support for in-database analytics is provided in SQL Server Machine Learning Services, the successor to R Services feature introduced in SQL Server 2016. Function libraries are available in R and Python and run as external script on a database engine instance.
1616

1717
This article explains how to install the machine learning component by running the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] setup wizard, and following the on-screen prompts.
1818

1919
## <a name="bkmk_prereqs"> </a> Pre-install checklist
2020

21-
+ SQL Server 2017 setup is required if you want to install Machine Learning Services with language support for R, Python, or both. If instead you have SQL Server 2016 installation media, you can install [SQL Server 2016 R Services (In-Database)](sql-r-services-windows-install.md) to get R language support.
21+
+ SQL Server 2017 Setup is required if you want to install Machine Learning Services with language support for R, Python, or both. If instead you have SQL Server 2016 installation media, you can install [SQL Server 2016 R Services (In-Database)](sql-r-services-windows-install.md) to get R language support.
2222

2323
+ A database engine instance is required. You cannot install just R or Python features, although you can add them incrementally to an existing instance.
2424

Lines changed: 47 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Set up a data-science client for R development on SQL Server | Microsoft Docs
2+
title: Set up a data science client for R development on SQL Server | Microsoft Docs
33
ms.prod: sql
44
ms.technology: machine-learning
55

@@ -16,93 +16,65 @@ After you have configured an instance of [!INCLUDE[ssCurrent](../../includes/ssc
1616

1717
This article describes some typical client scenarios, including configuration of the free Visual Studio Community edition to run R code in SQL Server.
1818

19-
## Install R libraries on the client
19+
## 1 - Install R libraries
2020

21-
Your client environment must include Microsoft R Open, as well as the additional RevoScaleR packages that support distributed execution of R on SQL Server. Standard distributions of R do not have the packages that support remote compute contexts or parallel execution of R tasks.
21+
Your client environment must include Microsoft R Open, as well as RevoScaleR and other product-specific R packages that support distributed execution of R on SQL Server. Standard distributions of R do not have the packages that support remote compute contexts or parallel execution of R tasks.
2222

23-
To get these libraries, install any of the following:
24-
25-
+ [Microsoft R Client](http://aka.ms/rclient/download)
23+
To get the full complement of libraries, install any of the following, but choose an option that most closely matches your SQL Server installation. Your client libraries should closely match equivalent libraries on the server.
2624

27-
+ Microsoft R Server (for SQL Server 2016)
25+
| Library provider | Usage |
26+
|------------------|--------------------------------|
27+
| [SQL Server 2017 Machine Learning Server (Standalone)](../install/sql-machine-learning-standalone-windows-install.md) | For best compatibility with a SQL Server 2017 instance, install the free developer edition of SQL Server 2017, choosing the "Standalone server" feature under **Shared features** in SQL Server Setup. |
28+
| [SQL Server 2016 R Server (Standalone)](../install/sql-r-standalone-windows-install.md) | Recommended for use with SQL Server 2016 R Services. Install the free developer edition of SQL Server 2016, choosing the "Standalone R Server" feature under **Shared features** in SQL Server Setup. |
29+
| [Microsoft R Client](http://aka.ms/rclient/download) | This free download is a limited version of R Server: it provides RevoScaleR and other R packages, but is capped at two threads and in-memory data. However, by installing R Client, you can create R solutions that start locally, and shift execution (referred to as *compute context*) to access data and the computational power of a remote SQL Server instance. For more information, see [What is Microsoft R Client](https://docs.microsoft.com/machine-learning-server/r-client/what-is-microsoft-r-client). |
2830

29-
- To install from SQL Server setup, see [Install SQL Server 2016 R Server (Standalone)](../install/sql-r-standalone-windows-install.md)
31+
## 2 - Use built-in R tools
3032

31-
- To use the separate Windows-based installer, see [Install Machine Learning Server for Windows](https://docs.microsoft.com/machine-learning-server/install/machine-learning-server-windows-install)
33+
When you install R with SQL Server, you get the same R tools that are installed with any base installation of R, such as RGui, Rterm, and so forth. These tools are lightweight, useful for checking package and library information, running ad hoc commands or script, or stepping through tutorials.
3234

33-
+ Machine Learning Server (for SQL Server 2017)
35+
Base R in Microsoft products is provided by Microsoft R Open, included in SQL Server Setup, built on open-source R. The following standard R tools are therefore installed by default.
3436

35-
- To install from SQL Server setup, see [Install SQL Server 2017 Machine Learning Server (Standalone)](../install/sql-machine-learning-standalone-windows-install.md)
37+
| Tool | Description |
38+
|------|-------------|
39+
| **RTerm**: | A command-line terminal for running R scripts |
40+
| **RGui.exe** | A simple interactive editor for R. The command-line arguments are the same for RGui.exe and RTerm. |
41+
|**RScript** | A command-line tool for running R scripts in batch mode. |
3642

37-
- To use the separate Windows-based installer, see [Install R Server 9.1 for Windows](https://docs.microsoft.com/machine-learning-server/install/r-server-install-windows)
43+
Tools are located in **bin** folder for base R as installed SQL Server or R Client. The following paths are valid locations for the tools, depending on which product version and feature you installed:
3844

39-
## R tools
45+
+ R Client: `~\Program Files\Microsoft\R Client\R_SERVER\bin\x64`
46+
+ R Services: `~\Program Files\Microsoft SQL Server\MSSQL13.<instancename>\R_SERVICES\bin\x64`
47+
+ R Server Standalone: `~\Program Files\Microsoft SQL Server\130\R_SERVER\bin\x64`
48+
+ Machine Learning Services: `~\Program Files\Microsoft SQL Server\MSSQL14.<instancename>\R_SERVICES\bin\x64`
49+
+ Machine Learning Server (Standalone): `~\Program Files\Microsoft SQL Server\140\R_SERVER\bin\x64`
4050

41-
When you install R with SQL Server, you get the same R tools that are installed with any **base** installation of R, such as RGui, Rterm, and so forth. Therefore technically, you have all the tools you need to develop and test R code.
51+
## 3 - Install an IDE
4252

43-
The following standard R tools are included in a *base installation* of R, and therefore are installed by default.
53+
For sustained and serious development projects, you should install an integrated development environment (IDE).
4454

45-
+ **RTerm**: A command-line terminal for running R scripts
55+
### RStudio
4656

47-
+ **RGui.exe**: A simple interactive editor for R. The command-line arguments are the same for RGui.exe and RTerm.
57+
When using [RStudio](https://www.rstudio.com/), you can configure the environment to use the R libraries and executables that correspond to those on a remote SQL Server.
4858

49-
+ **RScript**: A command-line tool for running R scripts in batch mode.
59+
1. Check R package versions installed on SQL Server. For more information, see [Get R package information](determine-which-packages-are-installed-on-sql-server.md#get-the-r-library-location).
5060

51-
To locate these tools, determine the R library that was installed when you set up SQL Server or the standalone machine learning feature. For example, in a default installation, the R tools are located in these folders:
61+
1. Install Microsoft R Client or one of the standalone server options to add RevoScaleR and other R packages, including the base R distribution used by your SQL Server instance. Choose a version at the same level or lower (packages are backward compatible) that provides the same package versions as those on the server. For version information, see the version map in this article: [Upgrade R and Python components](use-sqlbindr-exe-to-upgrade-an-instance-of-sql-server.md).
5262

53-
+ SQL Server 2016 R Services: `~\Program Files\Microsoft SQL Server\MSSQL13.<instancename>\R_SERVICES\bin\x64`
54-
+ Microsoft R Server Standalone: `~\Program Files\Microsoft R\R_SERVER\bin\x64`
55-
+ SQL Server 2017 Machine Learning Services: `~\Program Files\Microsoft SQL Server\MSSQL14.<instancename>\R_SERVICES\bin\x64`
56-
+ Machine Learning Server (Standalone): `~\Program Files\Microsoft\ML Server\R_SERVER\bin\x64`
63+
1. In RStudio, [update your R path](https://support.rstudio.com/hc/articles/200486138-Using-Different-Versions-of-R) to point to the R environment providing RevoScaleR, Microsoft R Open, and other Microsoft packages. Depending on how you obtained RevoScaleR and other libraries, it is most likely one of the following paths:
5764

58-
If you need help with the R tools, just open **RGui**, click **Help**, and select one of the options
65+
+ C:\Program Files\Microsoft SQL Server\130\R_SERVER\Library
66+
+ C:\Program Files\Microsoft SQL Server\140\R_SERVER\Library
67+
+ C:\Program Files\Microsoft\R Client\R_SERVER\bin\x64
5968

60-
## Microsoft R Client
69+
### R Tools for Visual Studio (RTVS)
6170

62-
Microsoft R Client is a free download that gives you access to the RevoScaleR packages for development use. By installing R Client, you can create R solutions that can be run in all supported compute contexts, including SQL Server in-database analytics, and distributed R computing on Hadoop, Spark, or Linux using Machine Learning Server.
71+
If you don't already have a preferred IDE for R, we recommend **R Tools for Visual Studio**.
6372

64-
If you have already installed a different R development environment, such as RStudio, be sure to reconfigure the environment to use the libraries and executables provided by Microsoft R Client. By doing so you can use all the features of the RevoScaleR package, although performance will be limited.
73+
+ [Download R Tools for Visual Studio (RTVS)](https://visualstudio.microsoft.com/vs/features/rtvs/)
74+
+ [Installation instrructions](https://docs.microsoft.com/visualstudio/rtvs/installing-r-tools-for-visual-studio) - RTVS is available in several versions of Visual Studio.
75+
+ [Get started with R Tools for Visual Studio](https://docs.microsoft.com/visualstudio/rtvs/getting-started-with-r)
6576

66-
For more information, see [What is Microsoft R Client?](https://docs.microsoft.com/machine-learning-server/r-client/what-is-microsoft-r-client)
67-
68-
## Install a development environment
69-
70-
If you don't already have a preferred R development environment, we recommend one of the following:
71-
72-
+ R Tools for Visual Studio
73-
74-
Works with Visual Studio 2015.
75-
76-
For setup information, see [How to install R Tools for Visual Studio](https://docs.microsoft.com/visualstudio/rtvs/installation).
77-
78-
To configure RTVS to use your Microsoft R client libraries, see [About Microsoft R Client](https://docs.microsoft.com/machine-learning-server/r-client/what-is-microsoft-r-client)
79-
80-
+ Visual Studio 2017
81-
82-
Even the free Community Edition includes the data science workload, which installs project templates for R, Python, and F#.
83-
84-
Download Visual Studio from [this site](https://www.visualstudio.com/vs/).
85-
86-
+ RStudio
87-
88-
If you prefer to use RStudio, some additional steps are required to use the RevoScaleR libraries:
89-
90-
- Install Microsoft R Client to get the required packages and libraries.
91-
- Update your R path to use the Microsoft R runtime.
92-
93-
For more information, see [R Client - configure your IDE](https://docs.microsoft.com/machine-learning-server/r-client/what-is-microsoft-r-client#step-2-configure-your-ide).
94-
95-
## Configure your IDE
96-
97-
+ R Tools for Visual Studio
98-
99-
See [this site](https://docs.microsoft.com/visualstudio/rtvs/getting-started-with-r) for some examples of how to build and debug R projects using R Tools for Visual Studio.
100-
101-
+ Visual Studio 2017
102-
103-
If you install Microsoft R Client or R Server **before** you install Visual Studio, the R Server libraries are automatically detected and used for your library path. If you have not installed the RevoScaleR libraries, from the **R Tools** menu, select **Install R Client**.
104-
105-
## Run R in SQL Server
77+
### Connect to SQL Server from RTVS
10678

10779
This example uses Visual Studio 2017 Community Edition, with the data science workload installed.
10880

@@ -132,7 +104,6 @@ This example uses Visual Studio 2017 Community Edition, with the data science wo
132104
sampleDataQuery <- "SELECT TOP 100 * from [dbo].[MyTestTable]"
133105
inDataSource <- RxSqlServerData(sqlQuery = sampleDataQuery, connectionString = connStr, rowsPerRead = 500)
134106
```
135-
136107
> [!TIP]
137108
> To run a batch, select the lines you want to run and press CTRL + ENTER.
138109

@@ -145,4 +116,11 @@ This example uses Visual Studio 2017 Community Edition, with the data science wo
145116

146117
Results are returned in the **R Interactive** window.
147118

148-
If you want to assure yourself that the code is being executed on the SQL Server instance, you can use Profiler to create a trace.
119+
If you want to assure yourself that the code is being executed on the SQL Server instance, you can use Profiler to create a trace.
120+
121+
## Next steps
122+
123+
Two different tutorials include exercises for switching the compute context from local to a remote SQL Server instance.
124+
125+
+ [Tutorial: Use RevoScaleR R functions with SQL Server data](../tutorials/deepdive-data-science-deep-dive-using-the-revoscaler-packages.md)
126+
+ [Data Science End-to-End Walkthrough](../tutorials/walkthrough-data-science-end-to-end-walkthrough.md)

docs/database-engine/install-windows/add-features-to-an-instance-of-sql-server-setup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ms.assetid: 97931fdc-d943-48dd-81b9-ae8b8d2c6dad
1616
caps.latest.revision: 29
1717
author: MashaMSFT
1818
ms.author: mathoma
19+
monikerRange: ">=sql-server-2016||=sqlallproducts-allversions"
1920
manager: craigg
2021
---
2122
# Add Features to an Instance of SQL Server (Setup)

docs/database-engine/install-windows/are-you-upgrading-from-sql-server-2005.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ms.assetid: ad40e66f-71fe-4ee6-9ce3-17127e7b1d7a
1212
caps.latest.revision: 21
1313
author: MashaMSFT
1414
ms.author: mathoma
15+
monikerRange: ">=sql-server-2016||=sqlallproducts-allversions"
1516
manager: craigg
1617
---
1718
# Are you upgrading from SQL Server 2005?

docs/database-engine/install-windows/change-the-database-compatibility-mode-and-use-the-query-store.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ms.assetid: 7e02a137-6867-4f6a-a45a-2b02674f7e65
1616
caps.latest.revision: 19
1717
author: MashaMSFT
1818
ms.author: mathoma
19+
monikerRange: ">=sql-server-2016||=sqlallproducts-allversions"
1920
manager: craigg
2021
---
2122
# Change the Database Compatibility Level and use the Query Store

docs/database-engine/install-windows/check-parameters-for-the-system-configuration-checker.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ms.assetid: 8e712c15-6bfa-4d71-b303-9526101e5594
2424
caps.latest.revision: 46
2525
author: MashaMSFT
2626
ms.author: mathoma
27+
monikerRange: ">=sql-server-2016||=sqlallproducts-allversions"
2728
manager: craigg
2829
---
2930
# Check parameters for the System Configuration Checker

docs/database-engine/install-windows/choose-a-database-engine-upgrade-method.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ms.topic: conceptual
1111
ms.assetid: 5e57a427-2e88-4ef6-b142-4ccad97bcecc
1212
author: MashaMSFT
1313
ms.author: mathoma
14+
monikerRange: ">=sql-server-2016||=sqlallproducts-allversions"
1415
manager: craigg
1516
---
1617
# Choose a database engine upgrade method

docs/database-engine/install-windows/complete-the-database-engine-upgrade.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ms.topic: conceptual
1111
ms.assetid: 3f08087e-e532-416c-8caa-e0ec88c57596
1212
author: MashaMSFT
1313
ms.author: mathoma
14+
monikerRange: ">=sql-server-2016||=sqlallproducts-allversions"
1415
manager: craigg
1516
---
1617
# Complete the Database Engine Upgrade

docs/database-engine/install-windows/configure-sql-server-on-a-server-core-installation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ms.assetid: ed6e5e94-4b8d-422a-a17e-61b05a4df903
1515
caps.latest.revision: 14
1616
author: MashaMSFT
1717
ms.author: mathoma
18+
monikerRange: ">=sql-server-2016||=sqlallproducts-allversions"
1819
manager: craigg
1920
---
2021
# Configure SQL Server on a Server Core Installation

docs/database-engine/install-windows/considerations-for-installing-sql-server-using-sysprep.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ms.assetid: e1792eeb-2874-4653-b20e-3063f4eb4e5d
1212
caps.latest.revision: 22
1313
author: MashaMSFT
1414
ms.author: mathoma
15+
monikerRange: ">=sql-server-2016||=sqlallproducts-allversions"
1516
manager: craigg
1617
---
1718
# Considerations for Installing SQL Server Using SysPrep

0 commit comments

Comments
 (0)