Skip to content

Commit ea04c0c

Browse files
committed
Make feedback changes
1 parent 8c3cff5 commit ea04c0c

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

articles/synapse-analytics/quickstart-serverless-sql-pool.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This quickstart shows how to query CSV, Apache Parquet, and JSON files.
2222
Choose a SQL client to issue queries:
2323

2424
- [Azure Synapse Studio](./get-started-create-workspace.md) is a web tool that you can use to browse files in storage and create SQL queries.
25-
- [Azure Data Studio](sql/get-started-azure-data-studio.md) is a client tool that lets you run SQL queries and notebooks on your on-demand database.
25+
- [Visual Studio Code](https://code.visualstudio.com/docs) with the [mssql extension](https://aka.ms/mssql-marketplace) is a cross-platform lightweight developer and data tool that lets you run SQL queries and notebooks on your on-demand database.
2626
- [SQL Server Management Studio](sql/get-started-ssms.md) is a client tool that lets you run SQL queries on your on-demand database.
2727

2828
This quickstart uses the following parameters:
@@ -48,19 +48,19 @@ Create your own database for demo purposes. You can use this database to create
4848
> [!NOTE]
4949
> The databases are used only for view metadata, not for actual data. Write down the database name for use later in the quickstart.
5050
51-
Use the following command, changing `mydbname` to a name of your choice:
51+
Use the following T-SQL command, changing `<mydbname>` to a name of your choice:
5252

5353
```sql
54-
CREATE DATABASE mydbname
54+
CREATE DATABASE <mydbname>
5555
```
5656

5757
### Create data source
5858

59-
To run queries using serverless SQL pool, create a data source that serverless SQL pool can use to access files in storage. Execute the following code snippet to create the data source used in samples in this section:
59+
To run queries using serverless SQL pool, create a data source that serverless SQL pool can use to access files in storage. Execute the following code snippet to create the data source used in samples in this section. Replace `<strong-password-here>` with a strong password of your choice.
6060

6161
```sql
6262
-- create master key that will protect the credentials:
63-
CREATE MASTER KEY ENCRYPTION BY PASSWORD = <enter-strong-password-here>
63+
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<strong-password-here>'
6464

6565
-- create credentials for containers in our demo storage account
6666
CREATE DATABASE SCOPED CREDENTIAL sqlondemand
@@ -145,7 +145,7 @@ Files are stored in a *json* container, using folder *books*, and contain a sing
145145

146146
### Sample query
147147

148-
The following query shows how to use [JSON_VALUE](/sql/t-sql/functions/json-value-transact-sql?view=azure-sqldw-latest&preserve-view=true) to retrieve scalar values (title, publisher) from a book with the title *Probabilistic and Statistical Methods in Cryptology, An Introduction by selected topics*:
148+
The following query shows how to use [JSON_VALUE](/sql/t-sql/functions/json-value-transact-sql?view=azure-sqldw-latest&preserve-view=true) to retrieve scalar values (title, publisher) from a book with the title *Probabilistic and Statistical Methods in Cryptology, An Introduction*:
149149

150150
```sql
151151
SELECT
@@ -164,11 +164,11 @@ FROM OPENROWSET
164164
WITH
165165
( jsonContent varchar(8000) ) AS [r]
166166
WHERE
167-
JSON_VALUE(jsonContent, '$.title') = 'Probabilistic and Statistical Methods in Cryptology, An Introduction by selected topics'
167+
JSON_VALUE(jsonContent, '$.title') = 'Probabilistic and Statistical Methods in Cryptology, An Introduction'
168168
```
169169

170170
> [!IMPORTANT]
171-
> We read the entire JSON file as a single row or column. So FIELDTERMINATOR, FIELDQUOTE, and ROWTERMINATOR are set to 0x0b because we don't expect to find it in the file.
171+
> We read the entire JSON file as a single row or column. So `FIELDTERMINATOR`, `FIELDQUOTE`, and `ROWTERMINATOR` are set to `0x0b` because we don't expect to find it in the file.
172172
173173
## Related content
174174

articles/synapse-analytics/security/how-to-grant-workspace-managed-identity-permissions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Select that same container or file system to grant the *Storage Blob Data Contri
6464

6565
#### Step 3: Open Access control and add role assignment
6666

67-
1. Select **Access control (IAM)** from the left navigation.
67+
1. Select **Access control (IAM)** from the resource menu.
6868

6969
1. Select **Add** > **Add role assignment** to open the **Add role assignment** page.
7070

9.37 KB
Loading

articles/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-statistics.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ For example, the optimizer selects a certain plan if it estimates that that the
2525

2626
## Automatic creation of statistic
2727

28-
When the database **AUTO_CREATE_STATISTICS** option is on, dedicated SQL pool analyzes incoming user queries for missing statistics.
28+
When the database `AUTO_CREATE_STATISTICS` option is on, dedicated SQL pool analyzes incoming user queries for missing statistics.
2929

3030
If statistics are missing, the query optimizer creates statistics on individual columns in the query predicate or join condition to improve cardinality estimates for the query plan.
3131

3232
> [!NOTE]
3333
> Automatic creation of statistics is currently turned on by default.
3434
35-
You can check if your dedicated SQL pool has **AUTO_CREATE_STATISTICS** configured by running the following command:
35+
You can check if your dedicated SQL pool has `AUTO_CREATE_STATISTICS` configured by running the following T-SQL command:
3636

3737
```sql
3838
SELECT name, is_auto_create_stats_on
3939
FROM sys.databases
4040
```
4141

42-
If your dedicated SQL pool doesn't have **AUTO_CREATE_STATISTICS** configured, we recommend you enable this property by running the following command:
42+
If your dedicated SQL pool doesn't have `AUTO_CREATE_STATISTICS` configured, we recommend you enable this property by running the following command. Replace `<your-datawarehouse-name>` with the name of your dedicated SQL pool.
4343

4444
```sql
4545
ALTER DATABASE <your-datawarehouse-name>
@@ -48,12 +48,12 @@ SET AUTO_CREATE_STATISTICS ON
4848

4949
These statements trigger the automatic creation of statistics:
5050

51-
- SELECT
52-
- INSERT-SELECT
53-
- CTAS
54-
- UPDATE
55-
- DELETE
56-
- EXPLAIN when containing a join or the presence of a predicate is detected
51+
- `SELECT`
52+
- `INSERT`... `SELECT`
53+
- `CREATE TABLE AS SELECT` (CTAS)
54+
- `UPDATE`
55+
- `DELETE`
56+
- `EXPLAIN` when containing a join or the presence of a predicate is detected
5757

5858
> [!NOTE]
5959
> Automatic creation of statistics isn't performed on temporary or external tables.
@@ -71,7 +71,7 @@ When automatic statistics are created, they take the form: `_WA_Sys_<8 digit col
7171
DBCC SHOW_STATISTICS (<table_name>, <target>)
7272
```
7373

74-
The *table\_name* is the name of the table that contains the statistics to display. This table can't be an external table. The target is the name of the target index, statistics, or column for which to display statistics information.
74+
The `table_name` is the name of the table that contains the statistics to display. This table can't be an external table. The target is the name of the target index, statistics, or column for which to display statistics information.
7575

7676
## Update statistics
7777

@@ -274,13 +274,13 @@ To create a multi-column statistics object, use the previous examples, but speci
274274
> [!NOTE]
275275
> The histogram, which is used to estimate the number of rows in the query result, is only available for the first column listed in the statistics object definition.
276276

277-
In this example, the histogram is on *product\_category*. Cross-column statistics are calculated on *product\_category* and *product\_sub\_category*:
277+
In this example, the histogram is on `product_category`. Cross-column statistics are calculated on `product_category` and `product_sub_category`:
278278

279279
```sql
280280
CREATE STATISTICS stats_2cols ON table1 (product_category, product_sub_category) WHERE product_category > '2000101' AND product_category < '20001231' WITH SAMPLE = 50 PERCENT;
281281
```
282282

283-
Because there's a correlation between *product\_category* and *product\_sub\_category*, a multi-column statistics object can be useful if these columns are accessed at the same time.
283+
Because there's a correlation between `product_category` and `product_sub_category`, a multi-column statistics object can be useful if these columns are accessed at the same time.
284284
285285
### Create statistics on all columns in a table
286286

articles/synapse-analytics/sql/get-started-ssms.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You can use [SQL Server Management Studio (SSMS)](/sql/ssms/download-sql-server-
2323

2424
> [!NOTE]
2525
> Supported tools for serverless SQL pool:
26-
> - [Azure Data Studio](/azure-data-studio/download-azure-data-studio) is fully supported starting from version 1.18.0.
26+
> - The [mssql extension](https://aka.ms/mssql-marketplace) for [Visual Studio Code](https://code.visualstudio.com/docs).
2727
> - SSMS is partially supported starting from version 18.5. You can use it to connect and query only.
2828
2929
## Prerequisites
@@ -48,7 +48,7 @@ To connect to Synapse SQL using dedicated SQL pool, follow these steps:
4848
* **Authentication**: Choose an authentication type, such as *SQL Server Authentication* or *Active Directory Integrated Authentication*.
4949
* **Login** and **Password**: Enter your user name and password if SQL Server Authentication was selected.
5050

51-
1. Expand your Azure SQL Server in **Object Explorer**. You can view the databases associated with the server, such as the sample *AdventureWorksDW* database. You can expand the database to see the tables:
51+
1. Expand your Azure SQL Server in **Object Explorer**. You can view the databases associated with the server, such as the sample `AdventureWorksDW` database. You can expand the database to see the tables:
5252

5353
:::image type="content" source="../sql-data-warehouse/media/sql-data-warehouse-query-ssms/explore-tables.png" alt-text="Screenshot that shows the Object Explorer window.":::
5454

@@ -63,7 +63,7 @@ To connect to Synapse SQL using serverless SQL pool, follow these steps:
6363
:::image type="content" source="media/get-started-ssms/connect-object-explorer1.png" alt-text="Screenshot that shows the Connect to Server dialog box for serverless SQL pool.":::
6464

6565
* **Server name**: Enter the server name previously identified.
66-
* **Authentication**: Choose an authentication type, such as *SQL Server Authentication* or *Active Directory Integrated Authentication*.
66+
* **Authentication**: Choose an authentication type, such as *SQL Server Authentication* or *Microsoft Entra Authentication*.
6767
* **Login** and **Password**: Enter your user name and password if SQL Server Authentication was selected.
6868

6969
1. To explore, expand your Azure SQL server. You can view the databases associated with the server. Expand *demo* to see the content in your sample database.
@@ -94,7 +94,7 @@ After you establish a database connection, you can query the data.
9494

9595
:::image type="content" source="../sql-data-warehouse/media/sql-data-warehouse-query-ssms/execute-query.png" alt-text="Screenshot of the Execute button to run the query.":::
9696

97-
1. Look at the query results. In the following example, the *FactInternetSales* table has 60,398 rows.
97+
1. Look at the query results. In the following example, the `FactInternetSales` table has 60,398 rows.
9898

9999
:::image type="content" source="../sql-data-warehouse/media/sql-data-warehouse-query-ssms/results.png" alt-text="Screenshot of the query results.":::
100100

@@ -118,7 +118,7 @@ After you establish a database connection, you can query the data.
118118

119119
:::image type="content" source="media/get-started-ssms/execute-query.png" alt-text="Screenshot of the Execute button to run the query for serverless SQL pool.":::
120120

121-
1. Look at the query results. In this example, the *usPopulationView* view has 3,664,512 rows.
121+
1. Look at the query results. In this example, the `usPopulationView` view has 3,664,512 rows.
122122

123123
:::image type="content" source="media/get-started-ssms/results.png" alt-text="Screenshot of the query results for serverless SQL pool.":::
124124

9.37 KB
Loading

articles/synapse-analytics/synapse-link/connect-synapse-link-sql-server-2022.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ This article is a step-by-step guide for getting started with Azure Synapse Link
117117
:::image type="content" source="../media/connect-synapse-link-sql-server-2022/adls-gen2-assign-blob-data-contributor-role.png" alt-text="Screenshot that shows how to add a role assignment.":::
118118

119119
> [!NOTE]
120-
> Make sure that you've granted your Azure Synapse workspace managed identity permissions to the Azure Data Lake Storage Gen2 storage account that's used as the landing zone. For more information, see [Grant permissions to a managed identity in an Azure Synapse workspace - Azure Synapse Analytics](../security/how-to-grant-workspace-managed-identity-permissions.md#grant-the-managed-identity-permissions-to-adls-gen2-storage-account).
120+
> Make sure that you've granted your Azure Synapse workspace managed identity permissions to the Azure Data Lake Storage Gen2 storage account that's used as the landing zone. For more information, see [Grant permissions to a managed identity in an Azure Synapse workspace - Azure Synapse Analytics](../security/how-to-grant-workspace-managed-identity-permissions.md#grant-the-managed-identity-permissions-to-data-lake-storage-account).
121121
122122
1. Open the **Manage** hub in your Azure Synapse workspace, and go to **Linked services**.
123123

0 commit comments

Comments
 (0)