Skip to content

Commit 544706f

Browse files
authored
Merge pull request #17686 from MicrosoftDocs/master
10/26 AM Publish
2 parents 67befbf + 58f8420 commit 544706f

9 files changed

Lines changed: 46 additions & 31 deletions

File tree

docs/big-data-cluster/use-prose-for-big-data-automation.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: This article describes how to use the PROSE Code Accelerator in Azu
55
author: dphansen
66
ms.author: davidph
77
ms.reviewer: mihaelab
8-
ms.date: 12/06/2018
8+
ms.date: 10/12/2020
99
ms.topic: conceptual
1010
ms.prod: sql
1111
ms.technology: machine-learning-bdc
@@ -15,7 +15,10 @@ ms.technology: machine-learning-bdc
1515

1616
[!INCLUDE[SQL Server 2019](../includes/applies-to-version/sqlserver2019.md)]
1717

18-
PROSE Code Accelerator generates readable Python code for your data wrangling tasks. You can mix the generated code with your hand-written code in a seamless manner while working in a notebook within Azure Data Studio. This article provides an overview of how you can use the Code Accelerator.
18+
PROSE Code Accelerator generates readable Python code for your data wrangling tasks.
19+
You can mix the generated code with your hand-written code while working in a notebook within Azure Data Studio.
20+
21+
This article provides an overview of how you can use the Code Accelerator.
1922

2023
> [!NOTE]
2124
> Program Synthesis using Examples, aka PROSE, is a Microsoft technology that generates human-readable code using AI. It does so by analyzing a user's intent as well as data, generating several candidate programs, and picking the best program using ranking algorithms. To know more about the PROSE technology, visit the [PROSE homepage](https://microsoft.github.io/prose/).
@@ -36,9 +39,11 @@ To get a general overview of Code Accelerator methods, see the [documentation](/
3639

3740
## Reading data from a file to a dataframe
3841

39-
Often, reading files to a dataframe involves looking at the content of the file and determining the correct parameters to pass to a data-loading library. Depending on the complexity of the file, identifying the correct parameters may require several iterations.
42+
Reading files to a dataframe involves looking at the content of the file and determining the correct parameters to pass to a data-loading library.
43+
44+
Depending on the complexity of the file, identifying the correct parameters may require several iterations.
4045

41-
PROSE Code Accelerator solves this problem by analyzing the structure of the data file and automatically generating code to load the file. In most cases, the generated code parses the data correctly. In a few cases, you might need to tweak the code to meet your needs.
46+
PROSE Code Accelerator solves this problem by analyzing the structure of the data file and automatically generating code to load the file. Normally, the generated code parses the data correctly. In a few cases, you might need to tweak the code to meet your needs.
4247

4348
Consider the following example:
4449

@@ -85,9 +90,9 @@ Code Accelerator can generate code to load delimited, JSON, and fixed-width file
8590

8691
## Fixing data types in a dataframe
8792

88-
It is common to have a pandas or pyspark dataframe with wrong data types. Often, this happens because of a few non-conforming values in a column. As a result, Integers are read as Float or Strings, and Dates are read as Strings. The effort required to manually fix the data types is proportional to the number of columns.
93+
It's common to have a pandas or pyspark dataframe with wrong data types. The incorrect datatype happens because of a few non-conforming values in a column. As a result, Integers are read as Float or Strings, and Dates are read as Strings. The effort required to manually fix the data types is proportional to the number of columns.
8994

90-
You can use the `DetectTypesBuilder` in these situations. It analyzes the data, and rather than fixing the data types in a black-box manner, it generates code for fixing the data types. The code serves as a starting point. You can review, use, or modify it as needed.
95+
You can use the `DetectTypesBuilder` in these situations. It analyzes the data and generates code to fix the data types. The code serves as a starting point. You can review, use, or modify it as needed.
9196

9297
```python
9398
import prose.codeaccelerator as cx
@@ -105,7 +110,7 @@ To learn more, see the [documentation](/python/api/overview/azure/prose/fixdatat
105110

106111
## Identifying patterns in Strings
107112

108-
Another common scenario is to detect patterns in a string column for the purpose of cleaning or grouping. For example, you may have a date column with dates in multiple different formats. In order to standardize the values, you might want to write conditional statements using regular expressions.
113+
p.
109114

110115

111116
|Row|Name |BirthDate |

docs/database-engine/install-windows/install-sql-server-from-the-command-prompt.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
---
22
title: "SQL Server installation - Command Prompt parameters"
33
description: This article describes command parameters for SQL Server installation. You can specify features to install and configure.
4-
ms.custom: ""
5-
ms.date: 07/26/2019
64
ms.prod: sql
75
ms.technology: install
8-
ms.reviewer: ""
96
ms.topic: conceptual
107
helpviewer_keywords:
118
- "installing SQL Server, command prompt"
@@ -82,8 +79,11 @@ helpviewer_keywords:
8279
- "nodes [Faillover Clustering], command prompt"
8380
- "INSTALLSQLSHAREDDIR parameter"
8481
ms.assetid: df40c888-691c-4962-a420-78a57852364d
85-
author: MashaMSFT
86-
ms.author: mathoma
82+
author: markingmyname
83+
ms.author: maghan
84+
ms.reviewer: ""
85+
ms.custom: ""
86+
ms.date: 07/26/2019
8787
monikerRange: ">=sql-server-2016||=sqlallproducts-allversions"
8888
---
8989
# Install SQL Server from the Command Prompt

docs/relational-databases/databases/rebuild-system-databases.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ ms.author: "sstein"
184184

185185
10. Backup the **msdb** database.
186186

187-
## <a name="RebuildTempdb"></a> Rebuild the Tempdb Database
187+
## <a name="RebuildTempdb"></a> Rebuild the tempdb Database
188188

189189
If the **tempdb** database is damaged and the database engine fails to start, you can rebuild **tempdb** without the need to rebuild all system databases.
190190

191-
1. Rename the current Tempdb.mdf and Templog.ldf files, if not missing.
191+
1. Rename the current tempdb.mdf and templog.ldf files, if not missing.
192192
1. Start [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] from a Command Prompt by using the following command.
193193

194194
```sql
@@ -203,7 +203,7 @@ If the **tempdb** database is damaged and the database engine fails to start, yo
203203
1. Connect to the server by using **sqlcmd**, and then use the following stored procedure to reset the status of the tempdb database.
204204

205205
```sql
206-
exec master..sp_resetstatus Tempdb
206+
exec master..sp_resetstatus tempdb
207207
```
208208

209209
1. Shut down the server by pressing CTRL+C in the command prompt window

docs/relational-databases/query-processing-architecture-guide.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ The basic steps that [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] uses
143143
- Arithmetic expressions, such as 1+1, 5/3*2, that contain only constants.
144144
- Logical expressions, such as 1=1 and 1>2 AND 3>4, that contain only constants.
145145
- Built-in functions that are considered foldable by [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)], including `CAST` and `CONVERT`. Generally, an intrinsic function is foldable if it is a function of its inputs only and not other contextual information, such as SET options, language settings, database options, and encryption keys. Nondeterministic functions are not foldable. Deterministic built-in functions are foldable, with some exceptions.
146-
- Deterministic methods of CLR user-defined types and deterministic scalar-valued CLR user-defined functions (starting with [!INCLUDE[ssSQL11](../includes/sssql11-md.md)]). For more information, see [Constant Folding for CLR User-Defined Functions and Methods](/previous-versions/sql/2014/database-engine/behavior-changes-to-database-engine-features-in-sql-server-2014?view=sql-server-2014#constant-folding-for-clr-user-defined-functions-and-methods).
146+
- Deterministic methods of CLR user-defined types and deterministic scalar-valued CLR user-defined functions (starting with [!INCLUDE[ssSQL11](../includes/sssql11-md.md)]). For more information, see [Constant Folding for CLR User-Defined Functions and Methods](/previous-versions/sql/2014/database-engine/behavior-changes-to-database-engine-features-in-sql-server-2014#constant-folding-for-clr-user-defined-functions-and-methods).
147147

148148
> [!NOTE]
149149
> An exception is made for large object types. If the output type of the folding process is a large object type (text,ntext, image, nvarchar(max), varchar(max), varbinary(max), or XML), then [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] does not fold the expression.
@@ -690,7 +690,10 @@ The following examples illustrate which execution plans get removed from the pla
690690
* An execution plan is frequently referenced so that its cost never goes to zero. The plan remains in the plan cache and is not removed unless there is memory pressure and the current cost is zero.
691691
* An ad-hoc execution plan is inserted and is not referenced again before memory pressure exists. Since ad-hoc plans are initialized with a current cost of zero, when the [!INCLUDE[ssDEnoversion](../includes/ssdenoversion-md.md)] examines the execution plan, it will see the zero current cost and remove the plan from the plan cache. The ad-hoc execution plan remains in the plan cache with a zero current cost when memory pressure does not exist.
692692

693-
To manually remove a single plan or all plans from the cache, use [DBCC FREEPROCCACHE](../t-sql/database-console-commands/dbcc-freeproccache-transact-sql.md). Starting with [!INCLUDE[ssSQL15](../includes/sssql15-md.md)], the `ALTER DATABASE SCOPED CONFIGURATION CLEAR PROCEDURE_CACHE` to clear the procedure (plan) cache for the database in scope.
693+
To manually remove a single plan or all plans from the cache, use [DBCC FREEPROCCACHE](../t-sql/database-console-commands/dbcc-freeproccache-transact-sql.md). [DBCC FREESYSTEMCACHE](../t-sql/database-console-commands/dbcc-freesystemcache-transact-sql.md) can also be used to clear any cache, including plan cache. Starting with [!INCLUDE[ssSQL15](../includes/sssql15-md.md)], the `ALTER DATABASE SCOPED CONFIGURATION CLEAR PROCEDURE_CACHE` to clear the procedure (plan) cache for the database in scope.
694+
A change in some configuration settings via [sp_configure](system-stored-procedures/sp-configure-transact-sql.md) and [reconfigure](../t-sql/language-elements/reconfigure-transact-sql.md) will also cause plans to be removed from plan cache. You can find the list of these configuration settings in the Remarks section of the [DBCC FREEPROCCACHE](../t-sql/database-console-commands/dbcc-freeproccache-transact-sql.md#remarks) article. A configuration change like this will log the following informational message in the error log:
695+
696+
> `SQL Server has encountered %d occurrence(s) of cachestore flush for the '%s' cachestore (part of plan cache) due to some database maintenance or reconfigure operations.`
694697
695698
### Recompiling Execution Plans
696699

74.9 KB
Loading

docs/ssms/tutorials/media/scripting-ssms/scriptstoredprocedure.PNG renamed to docs/ssms/tutorials/media/scripting-ssms/scriptstoredprocedure-old.png

File renamed without changes.

docs/ssms/tutorials/scripting-ssms.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
---
22
title: SSMS Script objects
3-
description: "Generate Transact-SQL (T-SQL) scripts for various objects found within SQL Server Management Studio (SSMS)."
3+
description: Generate Transact-SQL (T-SQL) scripts for various objects found within SQL Server Management Studio (SSMS).
44
ms.prod: sql
55
ms.technology: ssms
66
ms.prod_service: sql-tools
77
ms.topic: tutorial
88
keywords: SQL Server, SSMS, SQL Server Management Studio, Scripts, Scripting
9-
author: markingmyname
10-
ms.author: maghan
11-
ms.reviewer: sstein
12-
ms.date: 03/13/2018
139
helpviewer_keywords:
1410
- "projects [SQL Server Management Studio], tutorials"
1511
- "source controls [SQL Server Management Studio], tutorials"
@@ -19,6 +15,10 @@ helpviewer_keywords:
1915
- "solutions [SQL Server Management Studio], tutorials"
2016
- "SQL Server Management Studio [SQL Server], tutorials"
2117
- "scripts [SQL Server], SQL Server Management Studio"
18+
author: markingmyname
19+
ms.author: maghan
20+
ms.reviewer: sstein
21+
ms.date: 03/13/2018
2222
---
2323

2424
# Script objects in SQL Server Management Studio
@@ -179,7 +179,7 @@ This section covers how to script out tables from your database. Use this option
179179
180180
## Script stored procedures
181181

182-
In this section, you'll learn how to drop and create a stored procedure.
182+
In this section, you learn how to drop and create a stored procedure.
183183

184184
1. Connect to a server that's running SQL Server.
185185

@@ -191,7 +191,7 @@ In this section, you'll learn how to drop and create a stored procedure.
191191

192192
5. Right-click the stored procedure **dbo.uspGetBillOfMaterials** > **Script Stored Procedure As** > **DROP and CREATE To** > **New Query Editor Window**:
193193

194-
![Script stored procedures](media/scripting-ssms/scriptstoredprocedure.PNG)
194+
![Script stored procedures](media/scripting-ssms/script-stored-procedure.png)
195195

196196
## Script extended events
197197

docs/t-sql/database-console-commands/dbcc-freeproccache-transact-sql.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,16 @@ Removes all elements from the plan cache, removes a specific plan from the plan
3737
3838
![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md)
3939

40-
## Syntax
40+
## Syntax
41+
Syntax for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]:
4142

42-
Syntax for [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] and [!INCLUDE[ssSOD](../../includes/sssodfull-md.md)]:
43-
44-
```syntaxsql
43+
```sql
4544
DBCC FREEPROCCACHE [ ( { plan_handle | sql_handle | pool_name } ) ] [ WITH NO_INFOMSGS ]
4645
```
4746

4847
Syntax for [!INCLUDE[ssSDW](../../includes/sssdwfull-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]:
4948

50-
```syntaxsql
49+
```sql
5150
DBCC FREEPROCCACHE [ ( COMPUTE | ALL ) ]
5251
[ WITH NO_INFOMSGS ]
5352
[;]
@@ -89,7 +88,11 @@ DBCC FREEPROCCACHE [ ( COMPUTE | ALL ) ]
8988
## Remarks
9089
Use DBCC FREEPROCCACHE to clear the plan cache carefully. Clearing the procedure (plan) cache causes all plans to be evicted, and incoming query executions will compile a new plan, instead of reusing any previously cached plan.
9190

92-
This can cause a sudden, temporary decrease in query performance as the number of new compilations increases. For each cleared cachestore in the plan cache, the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] error log will contain the following informational message: " [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] has encountered %d occurrence(s) of cachestore flush for the '%s' cachestore (part of plan cache) due to 'DBCC FREEPROCCACHE' or 'DBCC FREESYSTEMCACHE' operations." This message is logged every five minutes as long as the cache is flushed within that time interval.
91+
This can cause a sudden, temporary decrease in query performance as the number of new compilations increases. For each cleared cachestore in the plan cache, the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] error log will contain the following informational message:
92+
93+
> `SQL Server has encountered %d occurrence(s) of cachestore flush for the '%s' cachestore (part of plan cache) due to 'DBCC FREEPROCCACHE' or 'DBCC FREESYSTEMCACHE' operations.`
94+
95+
This message is logged every five minutes as long as the cache is flushed within that time interval.
9396

9497
The following reconfigure operations also clear the procedure cache:
9598
- access check cache bucket count

docs/t-sql/database-console-commands/dbcc-freesystemcache-transact-sql.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ NO_INFOMSGS
5656
Suppresses all informational messages.
5757

5858
## Remarks
59-
Running DBCC FREESYSTEMCACHE clears the plan cache for the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Clearing the plan cache causes a recompilation of all upcoming execution plans and can cause a sudden, temporary reduction in query performance. For each cleared cachestore in the plan cache, the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] error log contains the following informational message: " [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] has encountered %d occurrence(s) of cachestore flush for the '%s' cachestore (part of plan cache) due to 'DBCC FREEPROCCACHE' or 'DBCC FREESYSTEMCACHE' operations." This message is logged every five minutes as long as the cache is flushed within that time interval.
59+
Running DBCC FREESYSTEMCACHE clears the plan cache for the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Clearing the plan cache causes a recompilation of all upcoming execution plans and can cause a sudden, temporary reduction in query performance. For each cleared cachestore in the plan cache, the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] error log contains the following informational message:
60+
61+
>`SQL Server has encountered %d occurrence(s) of cachestore flush for the '%s' cachestore (part of plan cache) due to 'DBCC FREEPROCCACHE' or 'DBCC FREESYSTEMCACHE' operations.`
62+
63+
This message is logged every five minutes as long as the cache is flushed within that time interval.
6064

6165
## Result sets
6266
DBCC FREESYSTEMCACHE returns:

0 commit comments

Comments
 (0)