Skip to content

Commit 08d0cb0

Browse files
authored
Merge pull request #17565 from markingmyname/asa2
[ADS] Update queries and images for the Azure Synapse Analytics article
2 parents fa68602 + e1ae2c5 commit 08d0cb0

5 files changed

Lines changed: 25 additions & 30 deletions

File tree

86 KB
Loading
91.9 KB
Loading
-22.9 KB
Loading
78.5 KB
Loading

docs/azure-data-studio/quickstart-sql-dw.md

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
22
title: Connect and query with Azure Synapse Analytics
3-
description: This quickstart shows how to use Azure Data Studio to connect to using dedicated SQL pool in Azure Synapse Analytics and run a query.
3+
description: This quickstart shows connecting to a dedicated SQL pool in Azure Synapse Analytics using Azure Data Studio.
44
ms.prod: azure-data-studio
55
ms.technology: azure-data-studio
6-
ms.reviewer: "alayu, maghan, sstein"
76
ms.topic: quickstart
87
author: yualan
98
ms.author: alayu
9+
ms.reviewer: alayu, jrasnick
1010
ms.custom: seodec18; seo-lt-2019
11-
ms.date: 09/24/2018
11+
ms.date: 10/15/2020
1212
---
1313

1414
# Quickstart: Use Azure Data Studio to connect and query data using dedicated SQL pool in Azure Synapse Analytics
1515

16-
This quickstart demonstrates how to use Azure Data Studio to connect to using dedicated SQL pool in Azure Synapse Analytics, and then use Transact-SQL statements to create, insert, and select data.
16+
This quickstart shows connecting to a dedicated SQL pool in Azure Synapse Analytics using Azure Data Studio.
1717

1818
## Prerequisites
1919
To complete this quickstart, you need Azure Data Studio, and a dedicated SQL pool in Azure Synapse Analytics.
2020

21-
- [Install Azure Data Studio](./download-azure-data-studio.md?view=sql-server-ver15).
21+
- [Install Azure Data Studio](./download-azure-data-studio.md).
2222

2323
If you don't already have a dedicated SQL pool, see [Create a dedicated SQL pool](/azure/sql-data-warehouse/sql-data-warehouse-get-started-provision).
2424

@@ -29,34 +29,31 @@ Remember the server name, and login credentials!
2929

3030
Use Azure Data Studio to establish a connection to your Azure Synapse Analytics server.
3131

32-
1. The first time you run Azure Data Studio the **Connection** page should open. If you don't see the **Connection** page, click **Add Connection**, or the **New Connection** icon in the **SERVERS** sidebar:
32+
1. The first time you run Azure Data Studio the **Connection** page should open. If you don't see the **Connection** page, select **Add Connection**, or the **New Connection** icon in the **SERVERS** sidebar:
3333

3434
![New Connection Icon](media/quickstart-sql-dw/new-connection-icon.png)
3535

3636
2. This article uses *SQL Login*, but *Windows Authentication* is also supported. Fill in the fields as follows using the server name, user name, and password for *your* Azure SQL server:
3737

38-
| Setting | Suggested value | Description |
39-
| ------------ | ------------------ | ------------------------------------------------- |
40-
| **Server name** | The fully qualified server name | The name should be something like this: **sqldwsample.database.windows.net** |
38+
| Setting | Suggested value | Description |
39+
|--------------|-----------------|-------------|
40+
| **Server name** | The fully qualified server name | For example the name should look like to this: **sqlpoolservername.database.windows.net**. |
4141
| **Authentication** | SQL Login| SQL Authentication is used in this tutorial. |
4242
| **User name** | The server admin account | This is the account that you specified when you created the server. |
4343
| **Password (SQL Login)** | The password for your server admin account | This is the password that you specified when you created the server. |
44-
| **Save Password?** | Yes or No | Select Yes if you do not want to enter the password each time. |
44+
| **Save Password?** | Yes or No | Select Yes if you don't want to enter the password each time. |
4545
| **Database name** | *leave blank* | The name of the database to which to connect. |
4646
| **Server Group** | Select <Default> | If you created a server group, you can set to a specific server group. |
4747

48-
![New Connection Icon](media/quickstart-sql-dw/new-connection-screen.png)
49-
5048
3. If your server doesn't have a firewall rule allowing Azure Data Studio to connect, the **Create new firewall rule** form opens. Complete the form to create a new firewall rule. For details, see [Firewall rules](/azure/sql-database/sql-database-firewall-configure).
5149

52-
![New firewall rule](media/quickstart-sql-dw/firewall.png)
53-
5450
4. After successfully connecting your server opens in the *Servers* sidebar.
5551

56-
## Create the tutorial dedicated SQL pool
57-
1. Right click on your server, in the object explorer and select **New Query.**
52+
## Create a database in your dedicated SQL pool
53+
54+
1. Right-click on your server, in the object explorer and select **New Query.**
5855

59-
1. Paste the following snippet into the query editor and click **Run**:
56+
2. Paste the following snippet into the query editor and select **Run**:
6057

6158
```sql
6259
IF NOT EXISTS (
@@ -71,20 +68,16 @@ Use Azure Data Studio to establish a connection to your Azure Synapse Analytics
7168
GO
7269
```
7370

74-
7571
## Create a table
7672

7773
The query editor is still connected to the *master* database, but we want to create a table in the *TutorialDB* database.
7874

7975
1. Change the connection context to **TutorialDB**:
8076

81-
![Change context](media/quickstart-sql-database/change-context.png)
82-
83-
84-
1. Paste the following snippet into the query editor and click **Run**:
77+
2. Paste the following snippet into the query editor and select **Run**:
8578

8679
> [!NOTE]
87-
> You can append this to, or overwrite the previous query in the editor. Note that clicking **Run** executes only the query that is selected. If nothing is selected, clicking **Run** executes all queries in the editor.
80+
> You can append this to, or overwrite the previous query in the editor. Note that selecting **Run** executes only the query that is selected. If nothing is selected, selecting **Run** executes all queries in the editor.
8881
8982
```sql
9083
-- Create a new table called 'Customers' in schema 'dbo'
@@ -103,10 +96,12 @@ The query editor is still connected to the *master* database, but we want to cre
10396
GO
10497
```
10598

99+
:::image type="content" source="media/quickstart-sql-dw/create-table.png" alt-text="Create a table in the TutorialDB database":::
100+
106101

107102
## Insert rows
108103

109-
1. Paste the following snippet into the query editor and click **Run**:
104+
1. Paste the following snippet into the query editor and select **Run**:
110105

111106
```sql
112107
-- Insert rows into table 'Customers'
@@ -118,25 +113,25 @@ The query editor is still connected to the *master* database, but we want to cre
118113
SELECT 4, N'Janet', N'United States', N'janet1@adventure-works.com'
119114
```
120115

116+
:::image type="content" source="media/quickstart-sql-dw/create-rows.png" alt-text="Create rows in the table":::
121117

122118
## View the result
123-
1. Paste the following snippet into the query editor and click **Run**:
119+
120+
1. Paste the following snippet into the query editor and select **Run**:
124121

125122
```sql
126123
-- Select rows from table 'Customers'
127124
SELECT * FROM dbo.Customers;
128125
```
129126

130-
1. The results of the query are displayed:
127+
2. The results of the query are displayed:
131128

132-
![Select results](media/quickstart-sql-dw/select-results.png)
129+
:::image type="content" source="media/quickstart-sql-dw/view-results.png" alt-text="View the results":::
133130

134131

135132
## Clean up resources
136133

137-
Other articles in this collection build upon this quickstart. If you plan to continue on to work with subsequent quickstarts, do not clean up the resources created in this quickstart. If you do not plan to continue, use the following steps to delete resources created by this quickstart in the Azure portal.
138-
Clean up resources by deleting the resource groups you no longer need. For details, see [Clean up resources](/azure/sql-database/sql-database-get-started-portal#clean-up-resources).
139-
134+
If you don't plan to continue working with the sample databases created in this article, then [delete the resource group](/azure/azure/synapse-analytics/sql-data-warehouse/create-data-warehouse-portal#clean-up-resources).
140135

141136
## Next steps
142137

0 commit comments

Comments
 (0)