You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/big-data-cluster/notebooks-tutorial-spark.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,9 @@ The following steps show how to open the notebook file in Azure Data Studio:
56
56
57
57

58
58
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
+
59
62
## Run the notebook cells
60
63
61
64
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.
Copy file name to clipboardExpand all lines: docs/big-data-cluster/release-notes-big-data-cluster.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ The following table lists the release history for [!INCLUDE[big-data-clusters-no
50
50
| 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 |
@@ -454,7 +455,7 @@ It would be difficult to select a code page for character data types that will s
454
455
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**).
455
456
456
457
> [!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).
458
459
459
460
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).
460
461
@@ -499,7 +500,7 @@ The following table provides information about using multilingual data with vari
499
500
|Non-Unicode|Non-Unicode|This is a very limiting scenario for multilingual data. You can use only a single code page.|
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).
503
504
504
505
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).
505
506
@@ -510,7 +511,7 @@ But the Unicode Consortium has established 16 additional "planes" of characters,
510
511
[!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.
511
512
512
513
> [!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.
514
515
515
516
If you use supplementary characters:
516
517
@@ -540,7 +541,7 @@ The following table compares the behavior of some string functions and string op
540
541
## <aname="GB18030"></a> GB18030 support
541
542
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.
542
543
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.
544
545
545
546
> [!NOTE]
546
547
> 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
556
557
557
558
## <aname="Japanese_Collations"></a> Japanese collations added in [!INCLUDE [sssql17-md](../../includes/sssql17-md.md)]
558
559
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.
560
561
561
562
To list these collations, you can query the [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)]:
562
563
563
564
```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
+
FROMsys.fn_helpcollations()
567
+
WHERE COLLATIONPROPERTY(name, 'Version') =3;
566
568
```
567
569
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.
569
571
570
572
These collations are supported in [!INCLUDE[ssde_md](../../includes/ssde_md.md)] indexes, memory-optimized tables, columnstore indexes, and natively compiled modules.
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.
97
96
2. On the Standard bar, click **New Query**.
98
97
99
98
3. Copy and paste the following example into the query window and click **Execute**.
100
99
101
100
```sql
102
-
USE AdventureWorks2012;
101
+
USE AdventureWorks2019;
103
102
GO
104
103
-- Find an existing index named IX_ProductVendor_VendorID and delete it if found.
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.
70
70
4. Right-click **Databases** in **Object Explorer** > **Restore Database...** to launch the **Restore Database** wizard.
71
71
72
72
:::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.":::
73
73
74
74
75
75
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.
77
77
1. Select **OK** to confirm your database backup selection and close the **Select backup devices** window.
78
78
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.
79
79
1. Select **OK** to restore your database.
@@ -113,7 +113,7 @@ GO
113
113
114
114
# [Azure Data Studio](#tab/data-studio)
115
115
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
117
117
118
118
To restore your database in Azure Data Studio, follow these steps:
119
119
@@ -155,9 +155,9 @@ To get sample data for Azure SQL Managed Instance instead, see [restore World Wi
155
155
156
156
### Deploy new sample database
157
157
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.
159
159
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:
161
161
162
162
1. Connect to your Azure portal.
163
163
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:
167
167
168
168
:::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":::
169
169
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.
Copy file name to clipboardExpand all lines: docs/t-sql/functions/json-modify-transact-sql.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ JSON_MODIFY escapes all special characters in the new value if the type of the v
74
74
75
75
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 (SQL Server)](../../relational-databases/json/json-path-expressions-sql-server.md).
|Not NULL|Yes|Update the existing value.|Update the existing value.|
80
80
|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