Skip to content

Commit 639b3b9

Browse files
authored
Merge pull request #20662 from MicrosoftDocs/master
11/12 PM Publish
2 parents df345e1 + 1a6162d commit 639b3b9

6 files changed

Lines changed: 31 additions & 27 deletions

File tree

docs/big-data-cluster/notebooks-tutorial-spark.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ The following steps show how to open the notebook file in Azure Data Studio:
5656

5757
![Set Kernel and Attach to](media/notebook-tutorial-spark/set-kernel-and-attach-to.png)
5858

59+
> [!IMPORTANT]
60+
> In Azure Data Studio, all Spark notebook types (Scala Spark, PySpark and SparkR) conventionally define some important Spark session related variables upon first cell execution. Those variables are: `spark`, `sc`, and `sqlContext`. When copying logic out of notebooks for batch submission (into a Python file to be run with `azdata bdc spark batch create` for example), make sure you define the variables accordingly.
61+
5962
## Run the notebook cells
6063

6164
You can run each notebook cell by pressing the play button to the left of the cell. The results are shown in the notebook after the cell finishes running.

docs/big-data-cluster/release-notes-big-data-cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The following table lists the release history for [!INCLUDE[big-data-clusters-no
5050
| Release <sup>1</sup> | [!INCLUDE[big-data-clusters-nover](../includes/ssbigdataclusters-ss-nover.md)] version | [!INCLUDE [azure-data-cli-azdata](../includes/azure-data-cli-azdata.md)] version <sup>2</sup> | Release date |
5151
|--|--|--|--|
5252
| [CU13](release-notes-cumulative-update-13.md) | 15.0.4178.15 | 20.3.8 | 2021-09-29 |
53-
| [CU12](release-notes-cumulative-update-12.md) | 15.0.4153.1 | 20.3.7 | 2021-08-04 |
53+
| [CU12](release-notes-cumulative-update-12.md) | 15.0.4153.13 | 20.3.7 | 2021-08-04 |
5454
| [CU11](release-notes-cumulative-updates-history.md#cu11) | 15.0.4138.2 | 20.3.5 | 2021-06-10 |
5555
| [CU10](release-notes-cumulative-updates-history.md#cu10) | 15.0.4123.1 | 20.3.2 | 2021-04-06 |
5656
| [CU9](release-notes-cumulative-updates-history.md#cu9) | 15.0.4102.2 | 20.3.0 | 2021-02-11 |

docs/relational-databases/collations/collation-and-unicode-support.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: "Collation and Unicode support"
33
title: "Collation and Unicode support | Microsoft Docs"
44
ms.custom: ""
5-
ms.date: 12/05/2019
5+
ms.date: 08/02/2021
66
ms.prod: sql
77
ms.reviewer: ""
88
ms.technology:
@@ -25,6 +25,7 @@ helpviewer_keywords:
2525
- "SQL Server collations"
2626
- "UTF-8"
2727
- "UTF-16"
28+
- "UCS-2"
2829
- "UTF8"
2930
- "UTF16"
3031
- "UCS2"
@@ -372,7 +373,7 @@ After you've assigned a collation to the server, you can change it only by expor
372373
To query the server collation for an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], use the `SERVERPROPERTY` function:
373374

374375
```sql
375-
SELECT CONVERT(varchar, SERVERPROPERTY('collation'));
376+
SELECT CONVERT(nvarchar(128), SERVERPROPERTY('collation'));
376377
```
377378

378379
To query the server for all available collations, use the following `fn_helpcollations()` built-in function:
@@ -403,7 +404,7 @@ ALTER DATABASE myDB COLLATE Greek_CS_AI;
403404
You can retrieve the current collation of a database by using a statement that's similar to the following:
404405

405406
```sql
406-
SELECT CONVERT (VARCHAR(50), DATABASEPROPERTYEX('database_name','collation'));
407+
SELECT CONVERT (nvarchar(128), DATABASEPROPERTYEX('database_name', 'collation'));
407408
```
408409

409410
#### <a name="Column-level-collations"></a> Column-level collations
@@ -454,7 +455,7 @@ It would be difficult to select a code page for character data types that will s
454455
If you store character data that reflects multiple languages in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ([!INCLUDE[ssVersion2005](../../includes/ssversion2005-md.md)] and later), use Unicode data types (**nchar**, **nvarchar**, and **ntext**) instead of non-Unicode data types (**char**, **varchar**, and **text**).
455456

456457
> [!NOTE]
457-
> For Unicode data types, the [!INCLUDE[ssde_md](../../includes/ssde_md.md)] can represent up to 65,535 characters using UCS-2, or the full Unicode range (‭1,114,111‬ characters) if supplementary characters are used. For more information about enabling supplementary characters, see [Supplementary Characters](#Supplementary_Characters).
458+
> For Unicode data types, the [!INCLUDE[ssde_md](../../includes/ssde_md.md)] can represent up to 65,536 characters using UCS-2, or the full Unicode range (‭1,114,112‬ characters) if supplementary characters are used. For more information about enabling supplementary characters, see [Supplementary Characters](#Supplementary_Characters).
458459
459460
Alternatively, starting with [!INCLUDE[sql-server-2019](../../includes/sssql19-md.md)], if a UTF-8 enabled collation (\_UTF8) is used, previously non-Unicode data types (**char** and **varchar**) become Unicode data types using UTF-8 encoding. [!INCLUDE[sql-server-2019](../../includes/sssql19-md.md)] doesn't change the behavior of previously existing Unicode data types (**nchar**, **nvarchar**, and **ntext**), which continue to use UCS-2 or UTF-16 encoding. For more information, see [Storage differences between UTF-8 and UTF-16](#storage_differences).
460461

@@ -499,7 +500,7 @@ The following table provides information about using multilingual data with vari
499500
|Non-Unicode|Non-Unicode|This is a very limiting scenario for multilingual data. You can use only a single code page.|
500501

501502
## <a name="Supplementary_Characters"></a> Supplementary characters
502-
The Unicode Consortium allocates to each character a unique code point, which is a value in the range 000000–10FFFF. The most frequently used characters have code point values in the range 000000–00FFFF (65,535 characters) which fit into an 8-bit or 16-bit word in memory and on-disk. This range is usually designated as the Basic Multilingual Plane (BMP).
503+
The Unicode Consortium allocates to each character a unique code point, which is a value in the range 000000–10FFFF. The most frequently used characters have code point values in the range 000000–00FFFF (65,536 characters) which fit into an 8-bit or 16-bit word in memory and on-disk. This range is usually designated as the Basic Multilingual Plane (BMP).
503504

504505
But the Unicode Consortium has established 16 additional "planes" of characters, each the same size as the BMP. This definition allows Unicode the potential to represent 1,114,112 characters (that is, 2<sup>16</sup> * 17 characters) within the code point range 000000–10FFFF. Characters with code point values larger than 00FFFF require two to four consecutive 8-bit words (UTF-8), or two consecutive 16-bit words (UTF-16). These characters located beyond the BMP are called *supplementary characters*, and the additional consecutive 8-bit or 16-bit words are called *surrogate pairs*. For more information about supplementary characters, surrogates, and surrogate pairs, refer to [the Unicode Standard](http://www.unicode.org/standard/standard.html).
505506

@@ -510,7 +511,7 @@ But the Unicode Consortium has established 16 additional "planes" of characters,
510511
[!INCLUDE[sql-server-2019](../../includes/sssql19-md.md)] extends supplementary character support to the **char** and **varchar** data types with the new UTF-8 enabled collations ([\_UTF8](#utf8)). These data types are also capable of representing the full Unicode character range.
511512

512513
> [!NOTE]
513-
> Starting with [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)], all new \_140 collations automatically support supplementary characters.
514+
> Starting with [!INCLUDE[sssql17-md](../../includes/sssql17-md.md)], all new collations automatically support supplementary characters.
514515
515516
If you use supplementary characters:
516517

@@ -540,7 +541,7 @@ The following table compares the behavior of some string functions and string op
540541
## <a name="GB18030"></a> GB18030 support
541542
GB18030 is a separate standard that's used in the People's Republic of China for encoding Chinese characters. In GB18030, characters can be 1, 2, or 4 bytes in length. [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] provides support for GB18030-encoded characters by recognizing them when they enter the server from a client-side application and converting and storing them natively as Unicode characters. After they're stored in the server, they're treated as Unicode characters in any subsequent operations.
542543

543-
You can use any Chinese collation, preferably the latest 100 version. All \_100 level collations support linguistic sorting with GB18030 characters. If the data includes supplementary characters (surrogate pairs), you can use the SC collations that are available in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] to improve searching and sorting.
544+
You can use any Chinese collation, preferably the latest 100 version. All version 100 collations support linguistic sorting with GB18030 characters. If the data includes supplementary characters (surrogate pairs), you can use the SC collations that are available in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] to improve searching and sorting.
544545

545546
> [!NOTE]
546547
> Ensure that your client tools, such as [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)], use the Dengxian font to correctly display strings that contain GB18030-encoded characters.
@@ -556,16 +557,17 @@ Database applications that interact with [!INCLUDE[ssNoVersion](../../includes/s
556557

557558
## <a name="Japanese_Collations"></a> Japanese collations added in [!INCLUDE [sssql17-md](../../includes/sssql17-md.md)]
558559

559-
Starting with [!INCLUDE [sssql17-md](../../includes/sssql17-md.md)], new Japanese collation families are supported, with the permutations of various options (\_CS, \_AS, \_KS, \_WS, and \_VSS).
560+
Starting with [!INCLUDE [sssql17-md](../../includes/sssql17-md.md)], new Japanese collation families are supported, with the permutations of various options (\_CS, \_AS, \_KS, \_WS, and \_VSS), as well as \_BIN and \_BIN2.
560561

561562
To list these collations, you can query the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)]:
562563

563564
```sql
564-
SELECT Name, Description FROM fn_helpcollations()
565-
WHERE Name LIKE 'Japanese_Bushu_Kakusu_140%' OR Name LIKE 'Japanese_XJIS_140%'
565+
SELECT name, description
566+
FROM sys.fn_helpcollations()
567+
WHERE COLLATIONPROPERTY(name, 'Version') = 3;
566568
```
567569

568-
All the new collations have built-in support for supplementary characters, so none of the new **\_140** collations has (or needs) the SC flag.
570+
All the new collations have built-in support for supplementary characters, so none of the new **140** collations has (or needs) the SC flag.
569571

570572
These collations are supported in [!INCLUDE[ssde_md](../../includes/ssde_md.md)] indexes, memory-optimized tables, columnstore indexes, and natively compiled modules.
571573

docs/relational-databases/indexes/create-nonclustered-indexes.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: "Create Nonclustered Indexes"
33
title: "Create Nonclustered Indexes | Microsoft Docs"
44
ms.custom: ""
5-
ms.date: "02/17/2017"
5+
ms.date: 11/12/2021
66
ms.prod: sql
77
ms.prod_service: "table-view-index, sql-database"
88
ms.reviewer: ""
@@ -56,7 +56,7 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||
5656

5757
3. Right-click the table on which you want to create a nonclustered index and select **Design**.
5858

59-
4. On the **Table Designer** menu, click **Indexes/Keys**.
59+
4. Right-click on the column you want to create the nonclustered index on and select **Indexes/Keys**.
6060

6161
5. In the **Indexes/Keys** dialog box, click **Add**.
6262

@@ -92,14 +92,13 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||
9292

9393
#### To create a nonclustered index on a table
9494

95-
1. In **Object Explorer**, connect to an instance of [!INCLUDE[ssDE](../../includes/ssde-md.md)].
96-
95+
1. In **Object Explorer**, connect to an instance of [!INCLUDE[ssDE](../../includes/ssde-md.md)] with AdventurWorks2019 installed. See [AdventureWorks sample databases](../../samples/adventureworks-install-configure.md?view=sql-server-ver15&tabs=ssms&preserve-view=true) to download AdventureWorks2019.
9796
2. On the Standard bar, click **New Query**.
9897

9998
3. Copy and paste the following example into the query window and click **Execute**.
10099

101100
```sql
102-
USE AdventureWorks2012;
101+
USE AdventureWorks2019;
103102
GO
104103
-- Find an existing index named IX_ProductVendor_VendorID and delete it if found.
105104
IF EXISTS (SELECT name FROM sys.indexes
@@ -113,6 +112,7 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||
113112
GO
114113
```
115114

116-
## Related content
115+
## Next steps
116+
117117
[CREATE INDEX &#40;Transact-SQL&#41;](../../t-sql/statements/create-index-transact-sql.md)
118118
[SQL Server Index Design Guide](../../relational-databases/sql-server-index-design-guide.md)

docs/samples/adventureworks-install-configure.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Follow these instructions to download and install AdventureWorks sa
44
ms.prod: sql
55
ms.prod_service: sql
66
ms.technology: samples
7-
ms.date: "06/16/2020"
7+
ms.date: 11/12/2021
88
ms.reviewer: ""
99
ms.topic: conceptual
1010
author: MashaMSFT
@@ -66,14 +66,14 @@ To restore your database in SQL Server Management Studio, follow these steps:
6666

6767
`C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Backup`.
6868

69-
3. Open SQL Server Management Studio (SSMS) and connect to your SQL Server in.
69+
3. Open SQL Server Management Studio (SSMS) and connect to your SQL Server.
7070
4. Right-click **Databases** in **Object Explorer** > **Restore Database...** to launch the **Restore Database** wizard.
7171

7272
:::image type="content" source="media/adventureworks-install-configure/restore-db-ssms.png" alt-text="Screenshot showing how to choose to restore your database by right-clicking databases in Object Explorer and then selecting Restore Database.":::
7373

7474

7575
1. Select **Device** and then select the ellipses **(...)** to choose a device.
76-
1. Select **Add** and then choose the `.bak` file you recently moved to this location. If you moved your file to this location but you're not able to see it in the wizard, this typically indicates a permissions issue - SQL Server or the user signed into SQL Server does not have permission to this file in this folder.
76+
1. Select **Add** and then choose the `.bak` file you recently moved to the backup location. If you moved your file to this location but you're not able to see it in the wizard, this typically indicates a permissions issue - SQL Server or the user signed into SQL Server does not have permission to this file in this folder.
7777
1. Select **OK** to confirm your database backup selection and close the **Select backup devices** window.
7878
1. Check the **Files** tab to confirm the **Restore as** location and file names match your intended location and file names in the **Restore Database** wizard.
7979
1. Select **OK** to restore your database.
@@ -113,7 +113,7 @@ GO
113113

114114
# [Azure Data Studio](#tab/data-studio)
115115

116-
If you're not familiar using [Azure Data Studio Studio](../azure-data-studio/download-azure-data-studio.md), you can see [connect & query](../azure-data-studio/quickstart-sql-server.md) to get started
116+
If you're not familiar using [Azure Data Studio Studio](../azure-data-studio/download-azure-data-studio.md), see [connect & query](../azure-data-studio/quickstart-sql-server.md) to get started
117117

118118
To restore your database in Azure Data Studio, follow these steps:
119119

@@ -155,9 +155,9 @@ To get sample data for Azure SQL Managed Instance instead, see [restore World Wi
155155

156156
### Deploy new sample database
157157

158-
When you create a new database in Azure SQL Database, you have the option to create a blank database, or a sample database.
158+
When you create a new database in Azure SQL Database, you have the option to create a blank database, restore from a backup or select sample data to populate your new database.
159159

160-
Follow these steps to use a sample database to create a new database:
160+
Follow these steps to add a sample data to your new database:
161161

162162
1. Connect to your Azure portal.
163163
1. Select **Create a resource** in the top left of the navigation pane.
@@ -167,8 +167,7 @@ Follow these steps to use a sample database to create a new database:
167167

168168
:::image type="content" source="media/adventureworks-install-configure/deploy-sample-to-azure.png" alt-text="Choose sample as the data source on the Additional settings tab in the Azure portal when creating your Azure SQL Database":::
169169

170-
1. Select **Create** to create your new SQL Database, which is the restored copy of the AdventureWorksLT database.
171-
170+
1. Select **Create** to create your new SQL Database, which is the restored copy of the AdventureWorksLT database.
172171

173172
### Deploy database from SQL Server
174173

docs/t-sql/functions/json-modify-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ JSON_MODIFY escapes all special characters in the new value if the type of the v
7474

7575
The following table compares the behavior of **JSON_MODIFY** in lax mode and in strict mode. For more info about the optional path mode specification (lax or strict), see [JSON Path Expressions &#40;SQL Server&#41;](../../relational-databases/json/json-path-expressions-sql-server.md).
7676

77-
|Existing value|Path exists|Lax mode|Strict mode|
77+
|New value|Path exists|Lax mode|Strict mode|
7878
|--------------------|-----------------|--------------|-----------------|
7979
|Not NULL|Yes|Update the existing value.|Update the existing value.|
8080
|Not NULL|No|Try to create a new key:value pair on the specified path.<br /><br /> This may fail. For example, if you specify the path `$.user.setting.theme`, JSON_MODIFY does not insert the key `theme` if the `$.user` or `$.user.settings` objects do not exist, or if settings is an array or a scalar value.|Error - INVALID_PROPERTY|

0 commit comments

Comments
 (0)