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: articles/synapse-analytics/quickstart-serverless-sql-pool.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ This quickstart shows how to query CSV, Apache Parquet, and JSON files.
22
22
Choose a SQL client to issue queries:
23
23
24
24
-[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.
26
26
-[SQL Server Management Studio](sql/get-started-ssms.md) is a client tool that lets you run SQL queries on your on-demand database.
27
27
28
28
This quickstart uses the following parameters:
@@ -48,19 +48,19 @@ Create your own database for demo purposes. You can use this database to create
48
48
> [!NOTE]
49
49
> The databases are used only for view metadata, not for actual data. Write down the database name for use later in the quickstart.
50
50
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:
52
52
53
53
```sql
54
-
CREATEDATABASEmydbname
54
+
CREATE DATABASE <mydbname>
55
55
```
56
56
57
57
### Create data source
58
58
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.
60
60
61
61
```sql
62
62
-- 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>'
64
64
65
65
-- create credentials for containers in our demo storage account
66
66
CREATEDATABASESCOPED CREDENTIAL sqlondemand
@@ -145,7 +145,7 @@ Files are stored in a *json* container, using folder *books*, and contain a sing
145
145
146
146
### Sample query
147
147
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*:
149
149
150
150
```sql
151
151
SELECT
@@ -164,11 +164,11 @@ FROM OPENROWSET
164
164
WITH
165
165
( jsonContent varchar(8000) ) AS [r]
166
166
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'
168
168
```
169
169
170
170
> [!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.
Copy file name to clipboardExpand all lines: articles/synapse-analytics/sql-data-warehouse/sql-data-warehouse-tables-statistics.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,21 +25,21 @@ For example, the optimizer selects a certain plan if it estimates that that the
25
25
26
26
## Automatic creation of statistic
27
27
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.
29
29
30
30
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.
31
31
32
32
> [!NOTE]
33
33
> Automatic creation of statistics is currently turned on by default.
34
34
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:
36
36
37
37
```sql
38
38
SELECT name, is_auto_create_stats_on
39
39
FROMsys.databases
40
40
```
41
41
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.
43
43
44
44
```sql
45
45
ALTERDATABASE<your-datawarehouse-name>
@@ -48,12 +48,12 @@ SET AUTO_CREATE_STATISTICS ON
48
48
49
49
These statements trigger the automatic creation of statistics:
50
50
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
57
57
58
58
> [!NOTE]
59
59
> 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
71
71
DBCC SHOW_STATISTICS (<table_name>, <target>)
72
72
```
73
73
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.
75
75
76
76
## Update statistics
77
77
@@ -274,13 +274,13 @@ To create a multi-column statistics object, use the previous examples, but speci
274
274
> [!NOTE]
275
275
> 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.
276
276
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`:
278
278
279
279
```sql
280
280
CREATE STATISTICS stats_2cols ON table1 (product_category, product_sub_category) WHERE product_category > '2000101' AND product_category < '20001231' WITH SAMPLE = 50 PERCENT;
281
281
```
282
282
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.
Copy file name to clipboardExpand all lines: articles/synapse-analytics/sql/get-started-ssms.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ You can use [SQL Server Management Studio (SSMS)](/sql/ssms/download-sql-server-
23
23
24
24
> [!NOTE]
25
25
> 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).
27
27
> - SSMS is partially supported starting from version 18.5. You can use it to connect and query only.
28
28
29
29
## Prerequisites
@@ -48,7 +48,7 @@ To connect to Synapse SQL using dedicated SQL pool, follow these steps:
48
48
***Authentication**: Choose an authentication type, such as *SQL Server Authentication* or *Active Directory Integrated Authentication*.
49
49
***Login** and **Password**: Enter your user name and password if SQL Server Authentication was selected.
50
50
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:
52
52
53
53
:::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.":::
54
54
@@ -63,7 +63,7 @@ To connect to Synapse SQL using serverless SQL pool, follow these steps:
63
63
:::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.":::
64
64
65
65
***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*.
67
67
***Login** and **Password**: Enter your user name and password if SQL Server Authentication was selected.
68
68
69
69
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.
94
94
95
95
:::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.":::
96
96
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.
98
98
99
99
:::image type="content" source="../sql-data-warehouse/media/sql-data-warehouse-query-ssms/results.png" alt-text="Screenshot of the query results.":::
100
100
@@ -118,7 +118,7 @@ After you establish a database connection, you can query the data.
118
118
119
119
:::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.":::
120
120
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.
122
122
123
123
:::image type="content" source="media/get-started-ssms/results.png" alt-text="Screenshot of the query results for serverless SQL pool.":::
Copy file name to clipboardExpand all lines: articles/synapse-analytics/synapse-link/connect-synapse-link-sql-server-2022.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
@@ -117,7 +117,7 @@ This article is a step-by-step guide for getting started with Azure Synapse Link
117
117
:::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.":::
118
118
119
119
> [!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).
121
121
122
122
1. Open the **Manage** hub in your Azure Synapse workspace, and go to **Linked services**.
0 commit comments