|
| 1 | +--- |
| 2 | +title: Updated - Advanced Analytics for SQL Server docs | Microsoft Docs |
| 3 | +description: Display snippets of updated content for recently changed in documentation, for Advanced Analytics for Microsoft SQL Server. |
| 4 | +services: na |
| 5 | +documentationcenter: '' |
| 6 | +author: MightyPen |
| 7 | +manager: jhubbard |
| 8 | +editor: '' |
| 9 | +ms.service: na |
| 10 | +ms.topic: updart-autogen |
| 11 | +ms.technology: database-engine |
| 12 | +ms.custom: UpdArt.exe |
| 13 | +ms.tgt_pltfrm: na |
| 14 | +ms.devlang: na |
| 15 | +ms.topic: updart-autogen |
| 16 | +ms.date: 06/30/2017 |
| 17 | +ms.author: genemi |
| 18 | +ms.workload: advanced-analytics |
| 19 | +--- |
| 20 | +# New and Recently Updated: Advanced Analytics for SQL Server |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +Nearly every day Microsoft updates some of its existing articles on its [Docs.Microsoft.com](http://docs.microsoft.com/) documentation website. This article displays excerpts from recently updated articles. Links to new articles might also be listed. |
| 25 | + |
| 26 | +This article is generated by a program that is rerun periodically. Occasionally an excerpt can appear with imperfect formatting, or as markdown from the source article. Images are never displayed here. |
| 27 | + |
| 28 | +Recent updates are reported for the following date range and subject: |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | +- *Date range of updates:* **2017-05-17** -to- **2017-06-30** |
| 33 | +- *Subject area:* **Advanced Analytics for SQL Server**. |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +## New Articles Created Recently |
| 41 | + |
| 42 | +The following links jump to new articles which have been added recently. |
| 43 | + |
| 44 | + |
| 45 | +1. [Common Issues with External Script Execution](common-issues-external-script-execution.md) |
| 46 | +2. [Data Collection for Machine Learning Troubleshooting](data-collection-ml-troubleshooting-process.md) |
| 47 | +3. [In-Database Python Analytics for SQL Developers](tutorials/sqldev-in-database-python-for-sql-developers.md) |
| 48 | +4. [In-Database R Analytics for SQL Developers](tutorials/sqldev-in-database-r-for-sql-developers.md) |
| 49 | +5. [Step 1: Download the Sample Data](tutorials/sqldev-py1-download-the-sample-data.md) |
| 50 | +6. [Step 2: Import Data to SQL Server using PowerShell](tutorials/sqldev-py2-import-data-to-sql-server-using-powershell.md) |
| 51 | +7. [Step 3: Explore and Visualize the Data](tutorials/sqldev-py3-explore-and-visualize-the-data.md) |
| 52 | +8. [Step 4: Create Data Features using T-SQL](tutorials/sqldev-py4-create-data-features-using-t-sql.md) |
| 53 | +9. [Step 5: Train and Save a Model using T-SQL](tutorials/sqldev-py5-train-and-save-a-model-using-t-sql.md) |
| 54 | +10. [Step 6: Operationalize the Model](tutorials/sqldev-py6-operationalize-the-model.md) |
| 55 | +11. [SQL Server Python Tutorials](tutorials/sql-server-python-tutorials.md) |
| 56 | +12. [SQL Server R Tutorials](tutorials/sql-server-r-tutorials.md) |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +## Updated Articles with Excerpts |
| 63 | + |
| 64 | +This section displays the excerpts of updates gathered from articles which have recently experienced a large update. |
| 65 | + |
| 66 | +The excerpts displayed here appear separated from their proper semantic context. Also, sometimes an excerpt is separated from important markdown syntax that surrounds it in the actual article. Therefore these excerpts are for general guidance only. The excerpts only enable you to know whether your interests warrant taking the time to click and visit the actual article. |
| 67 | + |
| 68 | +For these and other reasons, do not copy code from these excerpts, and do not take as exact truth any text excerpt. Instead, visit the actual article. |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | +<a name="TitleNum_1"/> |
| 77 | + |
| 78 | +### 1. [Introducing revoscalepy](python/what-is-revoscalepy.md) |
| 79 | + |
| 80 | +*Updated: 2017-06-23* ([Next](#TitleNum_2)) |
| 81 | + |
| 82 | +<!-- Source markdown line 112. ms.author= "jeannt". --> |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | +<!-- git diff --ignore-all-space --unified=0 cab7330ac9944508aaa360e00cbc2e866455776d 33f4e0e2421fa79fc11931dc7f29bff4432c6f5a (PR=2171 , Filename=what-is-revoscalepy.md , Dirpath=docs\advanced-analytics\python\ , MergeCommitSha40=7d2dbe0bdc4cbd05f11eacf938b35a9c35ace2e7) --> |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | +**Using revoscalepy with MicrosoftML** |
| 92 | + |
| 93 | + |
| 94 | +The Python functions for MicrosoftML are integrated with the compute contexts and data sources that are provided in revoscalepy. Therefore, you could use an MicrosoftML algorithm to define and train a model in Python, and use the revoscalepy functions to execute the Python code either locally or in a SQl Server compute context. |
| 95 | + |
| 96 | +Just import the modules in your Python code, and then reference the individual functions you need. |
| 97 | + |
| 98 | +``` |
| 99 | +from microsoftml.modules.logistic_regression.rx_logistic_regression import rx_logistic_regression |
| 100 | +from revoscalepy.functions.RxSummary import rx_summary |
| 101 | +from revoscalepy.etl.RxImport import rx_import_datasource |
| 102 | +``` |
| 103 | + |
| 104 | +**Requirements** |
| 105 | + |
| 106 | + |
| 107 | +To run Python code in SQL Server, you must have installed SQL Server 2017 together with the feature **Machine Learning Services**, and enabled the Python language. Earlier versions of SQL Server do not support Python integration. |
| 108 | + |
| 109 | +> [!NOTE] |
| 110 | +> Open source distributions of Python do not support SQL Server compute contexts. However, if you need to publish and consume Python applications from Windows, you can install Microsoft Machine Learning Server without installing SQL Server. For more information, see [Create a Standalone R Server--../r/create-a-standalone-r-server.md) |
| 111 | +
|
| 112 | +**Get more help** |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | +--- |
| 123 | + |
| 124 | +<a name="TitleNum_2"/> |
| 125 | + |
| 126 | +### 2. [Use Python with revoscalepy to Create a Model](tutorials/use-python-revoscalepy-to-create-model.md) |
| 127 | + |
| 128 | +*Updated: 2017-06-21* ([Previous](#TitleNum_1)) |
| 129 | + |
| 130 | +<!-- Source markdown line 119. ms.author= "jeannt". --> |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | +<!-- git diff --ignore-all-space --unified=0 0886939f86fe12d7ff7b339689a02c7fc75e0786 23dd469349a05d535063aab3c14aec152ed2cd7b (PR=2141 , Filename=use-python-revoscalepy-to-create-model.md , Dirpath=docs\advanced-analytics\tutorials\ , MergeCommitSha40=76839e39427e24688609353b8708d59fee772d28) --> |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | +**Review the code** |
| 140 | + |
| 141 | + |
| 142 | +Let's review the code and highlight some key steps. |
| 143 | + |
| 144 | +**Defining a data source and compute context** |
| 145 | + |
| 146 | + |
| 147 | +This is an important part of using **revoscalepy** and its related R package **RevoScaleR**. A data source is different from a compute context. The _data source_ defines the data used in your code. The _compute context_ defines where the code will be executed. |
| 148 | + |
| 149 | +> [!NOTE] |
| 150 | +> Support for some data source types supported in RevoScaleR might be limited in the pre-release version. For more information about functions included in the latest release, see [What is revoscalepy--../python/what-is-revoscalepy.md). |
| 151 | +
|
| 152 | +The overall process for creating and using a data source and compute context is as follows: |
| 153 | + |
| 154 | +1. Create Python variables, such as _sqlQuery_ and _connectionString_, that define the source and the data you want to use. Pass these variables to the **RxSqlServerData** constructor to implement the **data source object** named _dataSource_. |
| 155 | +2. Create a compute context object by using the **RxInSqlServer** constructor. In this example, you pass the same connection string you defined earlier, on the assumption that the data is on the same SQL Server instance that you will be using as the compute context. However, the data source and the compute context could be on different servers. The resulting **compute context object** is named _computeContext_. |
| 156 | +3. Choose the active compute context. By default, operations are run locally, which means that if you don't specify a different compute context, the data will be fetched from the data source, and the model-fitting will run in your current Python environment. |
| 157 | + |
| 158 | + In RevoScaleR, you can also use the function `rxSetComputeContext` to toggle between compute contexts. The function is not implemented yet in the preview version of **revoscalepy**, but you can specify the compute context as an argument to **rx_lin_mod_ex**. |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | +<a name="compactupdatedlist"/> |
| 167 | + |
| 168 | +## Compact List of Articles Updated Recently |
| 169 | + |
| 170 | +This compact list provides links to all the updated articles which are listed in the preceding section. |
| 171 | + |
| 172 | +1. [Introducing revoscalepy](#TitleNum_1) |
| 173 | +2. [Use Python with revoscalepy to Create a Model](#TitleNum_2) |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | +<a name="sisters2"/> |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | +## Sister Articles |
| 182 | + |
| 183 | +This section lists very similar articles for recently updated articles in other subject areas, within the same GitHub.com repository: [MicrosoftDocs/**sql-docs-pr**](https://github.com/microsoftdocs/sql-docs-pr/). |
| 184 | + |
| 185 | +<!-- 20170630-1150 --> |
| 186 | + |
| 187 | +#### Subject areas which do have new or recently updated articles |
| 188 | + |
| 189 | +- [New + Updated (12+2): **Advanced Analystics for SQL** docs](/sql/advanced-analytics-new-updated-sql-docs-pr) |
| 190 | +- [New + Updated (1+0): **Analysis Services for SQL** docs](/sql/analysis-services-new-updated-sql-docs-pr) |
| 191 | +- [New + Updated (0+2): **Connect to SQL** docs](/sql/connect-new-updated-sql-docs-pr) |
| 192 | +- [New + Updated (3+0): **Database Engine for SQL** docs](/sql/database-engine-new-updated-sql-docs-pr) |
| 193 | +- [New + Updated (1+2): **Integration Services for SQL** docs](/sql/integration-services-new-updated-sql-docs-pr) |
| 194 | +- [New + Updated (2+8): **Linux for SQL** docs](/sql/linux-new-updated-sql-docs-pr) |
| 195 | +- [New + Updated (1+0): **Master Data Services (MDS) for SQL** docs](/sql/master-data-services-new-updated-sql-docs-pr) |
| 196 | +- [New + Updated (5+5): **Relational Databases for SQL** docs](/sql/relational-databases-new-updated-sql-docs-pr) |
| 197 | +- [New + Updated (2+0): **Reporting Services for SQL** docs](/sql/reporting-services-new-updated-sql-docs-pr) |
| 198 | +- [New + Updated (0+4): **Microsoft SQL Server** docs](/sql/sql-server-new-updated-sql-docs-pr) |
| 199 | +- [New + Updated (0+1): **SQL Server Data Tools (SSDT)** docs](/sql/ssdt-new-updated-sql-docs-pr) |
| 200 | +- [New + Updated (0+1): **SQL Server Management Studio (SSMS)** docs](/sql/ssms-new-updated-sql-docs-pr) |
| 201 | +- [New + Updated (1+0): **Tools for SQL** docs](/sql/tools-new-updated-sql-docs-pr) |
| 202 | + |
| 203 | + |
| 204 | +#### Subject areas which have no new or recently updated articles |
| 205 | + |
| 206 | +- [New + Updated (0+0): **ActiveX Data Objects (ADO) for SQL** docs](/sql/ado-new-updated-sql-docs-pr) |
| 207 | +- [New + Updated (0+0): **Data Quality Services for SQL** docs](/sql/data-quality-services-new-updated-sql-docs-pr) |
| 208 | +- [New + Updated (0+0): **Data Mining Extensions (DMX) for SQL** docs](/sql/dmx-new-updated-sql-docs-pr) |
| 209 | +- [New + Updated (0+0): **Multidimensional Expressions (MDX) for SQL** docs](/sql/mdx-new-updated-sql-docs-pr) |
| 210 | +- [New + Updated (0+0): **ODBC (Open Database Connectivity) for SQL** docs](/sql/odbc-new-updated-sql-docs-pr) |
| 211 | +- [New + Updated (0+0): **PowerShell for SQL** docs](/sql/powershell-new-updated-sql-docs-pr) |
| 212 | +- [New + Updated (0+0): **Samples for SQL** docs](/sql/sample-new-updated-sql-docs-pr) |
| 213 | +- [New + Updated (0+0): **SQL Server Migration Assistant (SSMA)** docs](/sql/ssma-new-updated-sql-docs-pr) |
| 214 | +- [New + Updated (0+0): **Transact-SQL** docs](/sql/t-sql-new-updated-sql-docs-pr) |
| 215 | +- [New + Updated (0+0): **XQuery for SQL** docs](/sql/xquery-new-updated-sql-docs-pr) |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
0 commit comments