Skip to content

Commit 71203bf

Browse files
authored
Merge pull request #2542 from MicrosoftDocs/master
7/18 PM Publish
2 parents 1aa87e3 + aa3ee5c commit 71203bf

35 files changed

+1373
-1586
lines changed

docs/ado/new-updated-ado.md

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.custom: UpdArt.exe
1313
ms.tgt_pltfrm: na
1414
ms.devlang: na
1515
ms.topic: updart-autogen
16-
ms.date: 06/30/2017
16+
ms.date: 07/17/2017
1717
ms.author: genemi
1818
ms.workload: ado-activex-data-objects
1919
---
@@ -29,7 +29,7 @@ Recent updates are reported for the following date range and subject:
2929

3030

3131

32-
- *Date range of updates:*   **2017-05-17**   -to-   **2017-06-30**
32+
- *Date range of updates:*   **2017-05-23**   -to-   **2017-07-17**
3333
- *Subject area:*   **ActiveX Data Objects (ADO) for SQL Server**.
3434

3535

@@ -42,78 +42,77 @@ Recent updates are reported for the following date range and subject:
4242
The following links jump to new articles which have been added recently.
4343

4444

45-
*There are no new articles to list, this time.*
45+
***There are no new articles to list, this time.***
4646

4747

4848

49-
 
5049

51-
## Updated Articles with Excerpts
50+
 
5251

53-
This section displays the excerpts of updates gathered from articles which have recently experienced a large update.
52+
<a name="compactupdatedlist"/>
5453

55-
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.
54+
## Compact List of Articles Updated Recently
5655

57-
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.
56+
This compact list provides links to all the updated articles which are listed in the Excerpts section.
5857

5958

6059

6160
&nbsp;
6261

63-
*No articles in this area were updated recently, this time.*
64-
62+
## Updated Articles with Excerpts
6563

64+
This section displays the excerpts of updates gathered from articles which have recently experienced a large update.
6665

67-
&nbsp;
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.
6867

69-
<a name="compactupdatedlist"/>
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.
7069

71-
## Compact List of Articles Updated Recently
7270

73-
This compact list provides links to all the updated articles which are listed in the preceding section.
7471

72+
&nbsp;
7573

74+
***No articles in this area were updated recently, this time.***
7675

7776

7877

79-
<a name="sisters2"/>
78+
<a name="similars2"/>
8079

8180
&nbsp;
8281

83-
## Sister Articles
82+
## Similar Articles
8483

8584
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/).
8685

87-
<!-- 20170630-1150 -->
86+
<!-- 20170717-1101 -->
8887

8988
#### Subject areas which do have new or recently updated articles
9089

91-
- [New + Updated (12+2): **Advanced Analystics for SQL** docs](../advanced-analytics/new-updated-advanced-analytics.md)
92-
- [New + Updated (1+0): **Analysis Services for SQL** docs](../analysis-services/new-updated-analysis-services.md)
93-
- [New + Updated (0+2): **Connect to SQL** docs](../connect/new-updated-connect.md)
94-
- [New + Updated (3+0): **Database Engine for SQL** docs](../database-engine/new-updated-database-engine.md)
95-
- [New + Updated (1+2): **Integration Services for SQL** docs](../integration-services/new-updated-integration-services.md)
96-
- [New + Updated (2+8): **Linux for SQL** docs](../linux/new-updated-linux.md)
97-
- [New + Updated (1+0): **Master Data Services (MDS) for SQL** docs](../master-data-services/new-updated-master-data-services.md)
98-
- [New + Updated (5+5): **Relational Databases for SQL** docs](../relational-databases/new-updated-relational-databases.md)
99-
- [New + Updated (2+0): **Reporting Services for SQL** docs](../reporting-services/new-updated-reporting-services.md)
100-
- [New + Updated (0+4): **Microsoft SQL Server** docs](../sql-server/new-updated-sql-server.md)
101-
- [New + Updated (0+1): **SQL Server Data Tools (SSDT)** docs](../ssdt/new-updated-ssdt.md)
102-
- [New + Updated (0+1): **SQL Server Management Studio (SSMS)** docs](../ssms/new-updated-ssms.md)
103-
- [New + Updated (1+0): **Tools for SQL** docs](../tools/new-updated-tools.md)
90+
- [New + Updated (4+4) : **Advanced Analytics for SQL** docs](../advanced-analytics/new-updated-advanced-analytics.md)
91+
- [New + Updated (2+0) : **Analysis Services for SQL** docs](../analysis-services/new-updated-analysis-services.md)
92+
- [New + Updated (1+2) : **Connect to SQL** docs](../connect/new-updated-connect.md)
93+
- [New + Updated (6+0) : **Database Engine for SQL** docs](../database-engine/new-updated-database-engine.md)
94+
- [New + Updated (13+2): **Linux for SQL** docs](../linux/new-updated-linux.md)
95+
- [New + Updated (1+0) : **Master Data Services (MDS) for SQL** docs](../master-data-services/new-updated-master-data-services.md)
96+
- [New + Updated (1+0) : **ODBC (Open Database Connectivity) for SQL** docs](../odbc/new-updated-odbc.md)
97+
- [New + Updated (8+4) : **Relational Databases for SQL** docs](../relational-databases/new-updated-relational-databases.md)
98+
- [New + Updated (2+2) : **Microsoft SQL Server** docs](../sql-server/new-updated-sql-server.md)
99+
- [New + Updated (0+1) : **SQL Server Management Studio (SSMS)** docs](../ssms/new-updated-ssms.md)
100+
- [New + Updated (1+0) : **Transact-SQL** docs](../t-sql/new-updated-t-sql.md)
101+
- [New + Updated (1+0) : **Tools for SQL** docs](../tools/new-updated-tools.md)
104102

105103

106104
#### Subject areas which have no new or recently updated articles
107105

108106
- [New + Updated (0+0): **ActiveX Data Objects (ADO) for SQL** docs](../ado/new-updated-ado.md)
109107
- [New + Updated (0+0): **Data Quality Services for SQL** docs](../data-quality-services/new-updated-data-quality-services.md)
110108
- [New + Updated (0+0): **Data Mining Extensions (DMX) for SQL** docs](../dmx/new-updated-dmx.md)
109+
- [New + Updated (0+0): **Integration Services for SQL** docs](../integration-services/new-updated-integration-services.md)
111110
- [New + Updated (0+0): **Multidimensional Expressions (MDX) for SQL** docs](../mdx/new-updated-mdx.md)
112-
- [New + Updated (0+0): **ODBC (Open Database Connectivity) for SQL** docs](../odbc/new-updated-odbc.md)
113111
- [New + Updated (0+0): **PowerShell for SQL** docs](../powershell/new-updated-powershell.md)
112+
- [New + Updated (0+0): **Reporting Services for SQL** docs](../reporting-services/new-updated-reporting-services.md)
114113
- [New + Updated (0+0): **Samples for SQL** docs](../sample/new-updated-sample.md)
114+
- [New + Updated (0+0): **SQL Server Data Tools (SSDT)** docs](../ssdt/new-updated-ssdt.md)
115115
- [New + Updated (0+0): **SQL Server Migration Assistant (SSMA)** docs](../ssma/new-updated-ssma.md)
116-
- [New + Updated (0+0): **Transact-SQL** docs](../t-sql/new-updated-t-sql.md)
117116
- [New + Updated (0+0): **XQuery for SQL** docs](../xquery/new-updated-xquery.md)
118117

119118

docs/advanced-analytics/new-updated-advanced-analytics.md

Lines changed: 149 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.custom: UpdArt.exe
1313
ms.tgt_pltfrm: na
1414
ms.devlang: na
1515
ms.topic: updart-autogen
16-
ms.date: 06/30/2017
16+
ms.date: 07/17/2017
1717
ms.author: genemi
1818
ms.workload: advanced-analytics
1919
---
@@ -29,7 +29,7 @@ Recent updates are reported for the following date range and subject:
2929

3030

3131

32-
- *Date range of updates:* &nbsp; **2017-05-17** &nbsp; -to- &nbsp; **2017-06-30**
32+
- *Date range of updates:* &nbsp; **2017-05-23** &nbsp; -to- &nbsp; **2017-07-17**
3333
- *Subject area:* &nbsp; **Advanced Analytics for SQL Server**.
3434

3535

@@ -44,16 +44,19 @@ The following links jump to new articles which have been added recently.
4444

4545
1. [Common Issues with External Script Execution](common-issues-external-script-execution.md)
4646
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)
47+
3. [SQL Server Python Tutorials](tutorials/sql-server-python-tutorials.md)
48+
4. [SQL Server R Tutorials](tutorials/sql-server-r-tutorials.md)
49+
50+
51+
52+
53+
&nbsp;
54+
55+
<a name="compactupdatedlist"/>
56+
57+
## Compact List of Articles Updated Recently
58+
59+
This compact list provides links to all the updated articles which are listed in the Excerpts section.
5760

5861

5962

@@ -123,9 +126,123 @@ To run Python code in SQL Server, you must have installed SQL Server 2017 togeth
123126

124127
<a name="TitleNum_2"/>
125128

126-
### 2. &nbsp; [Use Python with revoscalepy to Create a Model](tutorials/use-python-revoscalepy-to-create-model.md)
129+
### 2. &nbsp; [Step 5: Train and Save a Model using T-SQL](tutorials/sqldev-py5-train-and-save-a-model-using-t-sql.md)
130+
131+
*Updated: 2017-06-01* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ([Previous](#TitleNum_1) | [Next](#TitleNum_3))
132+
133+
<!-- Source markdown line 121. ms.author= "jeannt". -->
134+
135+
&nbsp;
136+
137+
138+
<!-- git diff --ignore-all-space --unified=0 5c1cbe92282b96105ffdb69efa803f58dc0ac7e2 e4077a2154a90de468c435efa5b2225125d5b0e7 (PR=1904 , Filename=sqldev-py5-train-and-save-a-model-using-t-sql.md , Dirpath=docs\advanced-analytics\tutorials\ , MergeCommitSha40=dbf91e0d6f8257227cfe8ac6d13c484d0a566f57) -->
139+
127140

128-
*Updated: 2017-06-21* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ([Previous](#TitleNum_1))
141+
142+
1. In [!INCLUDE[ssManStudio--../../includes/ssmanstudio-md.md)], open a new Query window and run the following statement to create the stored procedure _TrainTipPredictionModelRxPy_. This model will be based on the training data you just prepared. Because the stored procedure already includes a definition of the input data, you don't need to provide an input query.
143+
144+
```SQL
145+
DROP PROCEDURE IF EXISTS TrainTipPredictionModelRxPy;
146+
GO
147+
148+
CREATE PROCEDURE [dbo].[TrainTipPredictionModelRxPy] (@trained_model varbinary(max) OUTPUT)
149+
AS
150+
BEGIN
151+
EXEC sp_execute_external_script
152+
@language = N'Python',
153+
@script = N'
154+
import numpy
155+
import pickle
156+
import pandas
157+
from revoscalepy.functions.RxLogit import rx_logit_ex
158+
159+
## Create a logistic regression model using rx_logit_ex function from revoscalepy package
160+
logitObj = rx_logit_ex("tipped ~ passenger_count + trip_distance + trip_time_in_secs + direct_distance", data = InputDataSet);
161+
162+
## Serialize model
163+
trained_model = pickle.dumps(logitObj)
164+
',
165+
@input_data_1 = N'
166+
select tipped, fare_amount, passenger_count, trip_time_in_secs, trip_distance,
167+
dbo.fnCalculateDistance(pickup_latitude, pickup_longitude, dropoff_latitude, dropoff_longitude) as direct_distance
168+
from nyctaxi_sample_training
169+
',
170+
@input_data_1_name = N'InputDataSet',
171+
@params = N'@trained_model varbinary(max) OUTPUT',
172+
@trained_model = @trained_model OUTPUT;
173+
;
174+
END;
175+
```
176+
177+
178+
179+
&nbsp;
180+
181+
&nbsp;
182+
183+
---
184+
185+
<a name="TitleNum_3"/>
186+
187+
### 3. &nbsp; [Step 6: Operationalize the Model](tutorials/sqldev-py6-operationalize-the-model.md)
188+
189+
*Updated: 2017-06-01* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ([Previous](#TitleNum_2) | [Next](#TitleNum_4))
190+
191+
<!-- Source markdown line 236. ms.author= "jeannt". -->
192+
193+
&nbsp;
194+
195+
196+
<!-- git diff --ignore-all-space --unified=0 1eb50ac902d4e80bafb1dd7fdf8f607dcdf0d33f 57d5abdc6119db1ecd81587d625054a5bbfb5fc8 (PR=1904 , Filename=sqldev-py6-operationalize-the-model.md , Dirpath=docs\advanced-analytics\tutorials\ , MergeCommitSha40=dbf91e0d6f8257227cfe8ac6d13c484d0a566f57) -->
197+
198+
199+
200+
Here is the definition of the stored procedure that performs scoring using the **revoscalepy** model.
201+
202+
```
203+
CREATE PROCEDURE [dbo].[PredictTipSingleModeRxPy] (@model varchar(50), @passenger_count int = 0,
204+
@trip_distance float = 0,
205+
@trip_time_in_secs int = 0,
206+
@pickup_latitude float = 0,
207+
@pickup_longitude float = 0,
208+
@dropoff_latitude float = 0,
209+
@dropoff_longitude float = 0)
210+
AS
211+
BEGIN
212+
DECLARE @inquery nvarchar(max) = N'
213+
SELECT * FROM [dbo].[fnEngineerFeatures--
214+
@passenger_count,
215+
@trip_distance,
216+
@trip_time_in_secs,
217+
@pickup_latitude,
218+
@pickup_longitude,
219+
@dropoff_latitude,
220+
@dropoff_longitude)
221+
'
222+
DECLARE @lmodel2 varbinary(max) = (select model from nyc_taxi_models2 where name = @model);
223+
EXEC sp_execute_external_script
224+
@language = N'Python',
225+
@script = N'
226+
import pickle;
227+
import numpy;
228+
import pandas;
229+
from revoscalepy.functions.RxPredict import rx_predict_ex;
230+
```
231+
232+
233+
234+
235+
&nbsp;
236+
237+
&nbsp;
238+
239+
---
240+
241+
<a name="TitleNum_4"/>
242+
243+
### 4. &nbsp; [Use Python with revoscalepy to Create a Model](tutorials/use-python-revoscalepy-to-create-model.md)
244+
245+
*Updated: 2017-06-21* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ([Previous](#TitleNum_3))
129246
130247
<!-- Source markdown line 119. ms.author= "jeannt". -->
131248
@@ -161,58 +278,44 @@ The overall process for creating and using a data source and compute context is
161278
162279
163280
164-
&nbsp;
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-
178-
<a name="sisters2"/>
281+
<a name="similars2"/>
179282
180283
&nbsp;
181284
182-
## Sister Articles
285+
## Similar Articles
183286
184287
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/).
185288
186-
<!-- 20170630-1150 -->
289+
<!-- 20170717-1101 -->
187290
188291
#### Subject areas which do have new or recently updated articles
189292
190-
- [New + Updated (12+2): **Advanced Analystics for SQL** docs](../advanced-analytics/new-updated-advanced-analytics.md)
191-
- [New + Updated (1+0): **Analysis Services for SQL** docs](../analysis-services/new-updated-analysis-services.md)
192-
- [New + Updated (0+2): **Connect to SQL** docs](../connect/new-updated-connect.md)
193-
- [New + Updated (3+0): **Database Engine for SQL** docs](../database-engine/new-updated-database-engine.md)
194-
- [New + Updated (1+2): **Integration Services for SQL** docs](../integration-services/new-updated-integration-services.md)
195-
- [New + Updated (2+8): **Linux for SQL** docs](../linux/new-updated-linux.md)
196-
- [New + Updated (1+0): **Master Data Services (MDS) for SQL** docs](../master-data-services/new-updated-master-data-services.md)
197-
- [New + Updated (5+5): **Relational Databases for SQL** docs](../relational-databases/new-updated-relational-databases.md)
198-
- [New + Updated (2+0): **Reporting Services for SQL** docs](../reporting-services/new-updated-reporting-services.md)
199-
- [New + Updated (0+4): **Microsoft SQL Server** docs](../sql-server/new-updated-sql-server.md)
200-
- [New + Updated (0+1): **SQL Server Data Tools (SSDT)** docs](../ssdt/new-updated-ssdt.md)
201-
- [New + Updated (0+1): **SQL Server Management Studio (SSMS)** docs](../ssms/new-updated-ssms.md)
202-
- [New + Updated (1+0): **Tools for SQL** docs](../tools/new-updated-tools.md)
293+
- [New + Updated (4+4) : **Advanced Analytics for SQL** docs](../advanced-analytics/new-updated-advanced-analytics.md)
294+
- [New + Updated (2+0) : **Analysis Services for SQL** docs](../analysis-services/new-updated-analysis-services.md)
295+
- [New + Updated (1+2) : **Connect to SQL** docs](../connect/new-updated-connect.md)
296+
- [New + Updated (6+0) : **Database Engine for SQL** docs](../database-engine/new-updated-database-engine.md)
297+
- [New + Updated (13+2): **Linux for SQL** docs](../linux/new-updated-linux.md)
298+
- [New + Updated (1+0) : **Master Data Services (MDS) for SQL** docs](../master-data-services/new-updated-master-data-services.md)
299+
- [New + Updated (1+0) : **ODBC (Open Database Connectivity) for SQL** docs](../odbc/new-updated-odbc.md)
300+
- [New + Updated (8+4) : **Relational Databases for SQL** docs](../relational-databases/new-updated-relational-databases.md)
301+
- [New + Updated (2+2) : **Microsoft SQL Server** docs](../sql-server/new-updated-sql-server.md)
302+
- [New + Updated (0+1) : **SQL Server Management Studio (SSMS)** docs](../ssms/new-updated-ssms.md)
303+
- [New + Updated (1+0) : **Transact-SQL** docs](../t-sql/new-updated-t-sql.md)
304+
- [New + Updated (1+0) : **Tools for SQL** docs](../tools/new-updated-tools.md)
203305
204306
205307
#### Subject areas which have no new or recently updated articles
206308
207309
- [New + Updated (0+0): **ActiveX Data Objects (ADO) for SQL** docs](../ado/new-updated-ado.md)
208310
- [New + Updated (0+0): **Data Quality Services for SQL** docs](../data-quality-services/new-updated-data-quality-services.md)
209311
- [New + Updated (0+0): **Data Mining Extensions (DMX) for SQL** docs](../dmx/new-updated-dmx.md)
312+
- [New + Updated (0+0): **Integration Services for SQL** docs](../integration-services/new-updated-integration-services.md)
210313
- [New + Updated (0+0): **Multidimensional Expressions (MDX) for SQL** docs](../mdx/new-updated-mdx.md)
211-
- [New + Updated (0+0): **ODBC (Open Database Connectivity) for SQL** docs](../odbc/new-updated-odbc.md)
212314
- [New + Updated (0+0): **PowerShell for SQL** docs](../powershell/new-updated-powershell.md)
315+
- [New + Updated (0+0): **Reporting Services for SQL** docs](../reporting-services/new-updated-reporting-services.md)
213316
- [New + Updated (0+0): **Samples for SQL** docs](../sample/new-updated-sample.md)
317+
- [New + Updated (0+0): **SQL Server Data Tools (SSDT)** docs](../ssdt/new-updated-ssdt.md)
214318
- [New + Updated (0+0): **SQL Server Migration Assistant (SSMA)** docs](../ssma/new-updated-ssma.md)
215-
- [New + Updated (0+0): **Transact-SQL** docs](../t-sql/new-updated-t-sql.md)
216319
- [New + Updated (0+0): **XQuery for SQL** docs](../xquery/new-updated-xquery.md)
217320
218321

0 commit comments

Comments
 (0)