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/get-started-analyze-sql-pool.md
+31-6Lines changed: 31 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,29 +4,38 @@ description: In this tutorial, use the NYC Taxi sample data to explore SQL pool'
4
4
author: whhender
5
5
ms.author: whhender
6
6
ms.reviewer: whhender, wiassaf
7
-
ms.date: 10/16/2023
7
+
ms.date: 12/11/2024
8
8
ms.service: azure-synapse-analytics
9
9
ms.subservice: sql
10
10
ms.topic: tutorial
11
11
ms.custom: engagement-fy23
12
12
---
13
13
14
-
# Analyze data with dedicated SQL pools
14
+
# Tutorial: Analyze data with dedicated SQL pools
15
15
16
16
In this tutorial, use the NYC Taxi data to explore a dedicated SQL pool's capabilities.
17
17
18
+
> [!div class="checklist"]
19
+
> *[Deploy a dedicated SQL pool]
20
+
> *[Load data into the pool]
21
+
> *[Explore the data you've loaded]
22
+
23
+
## Prerequisites
24
+
25
+
* This tutorial assumes you've completed the steps in the rest of the quickstarts. Specifically it uses the 'contosodatalake' resource created in [the Create a Synapse Workspace quickstart.](get-started-create-workspace.md#place-sample-data-into-the-primary-storage-account)
26
+
18
27
## Create a dedicated SQL pool
19
28
20
29
1. In Synapse Studio, on the left-side pane, select **Manage** > **SQL pools** under **Analytics pools**.
21
30
1. Select **New**.
22
31
1. For **Dedicated SQL pool name** select `SQLPOOL1`.
23
32
1. For **Performance level** choose **DW100C**.
24
-
1. Select **Review + create** > **Create**. Your dedicated SQL pool will be ready in a few minutes.
33
+
1. Select **Review + create** > **Create**. Your dedicated SQL pool will be ready in a few minutes.
25
34
26
35
Your dedicated SQL pool is associated with a SQL database that's also called `SQLPOOL1`.
27
36
28
37
1. Navigate to **Data** > **Workspace**.
29
-
1. You should see a database named **SQLPOOL1**. If you do not see it, select **Refresh**.
38
+
1. You should see a database named **SQLPOOL1**. If you don't see it, select **Refresh**.
30
39
31
40
A dedicated SQL pool consumes billable resources as long as it's active. You can pause the pool later to reduce costs.
32
41
@@ -83,13 +92,20 @@ A dedicated SQL pool consumes billable resources as long as it's active. You can
83
92
,IDENTITY_INSERT ='OFF'
84
93
)
85
94
```
95
+
96
+
>[!TIP]
97
+
>If you get an error that reads `Login failed for user '<token-identified principal>'`, you need to set your Entra Id admin.
98
+
>1. In the Azure Portal, search for your synapse workspace.
99
+
>1. Under **Settings**select**Microsoft Entra ID**.
100
+
>1. Select**Set admin**andset a Microsoft Entra ID admin.
101
+
86
102
1. Select the **Run** button to execute the script.
87
103
1. This script finishes in less than 60 seconds. It loads 2 million rows of NYC Taxi data into a table called `dbo.NYCTaxiTripSmall`.
88
104
89
105
## Explore the NYC Taxi data in the dedicated SQL pool
90
106
91
107
1. In Synapse Studio, go to the **Data** hub.
92
-
1. Go to **SQLPOOL1**>**Tables**.
108
+
1. Go to **SQLPOOL1**>**Tables**. (If you don't see it in the menu, refresh the page.)
93
109
1. Right-click the **dbo.NYCTaxiTripSmall** table and select **New SQL Script** > **Select TOP 100 Rows**.
94
110
1. Wait while a new SQL script is created and runs.
95
111
1. At the top of the SQL script **Connect to** is automatically set to the SQL pool called **SQLPOOL1**.
@@ -110,7 +126,16 @@ A dedicated SQL pool consumes billable resources as long as it's active. You can
110
126
111
127
This query creates a table `dbo.PassengerCountStats` with aggregate data from the `trip_distance` field, then queries the new table. The data shows how the total trip distances and average trip distance relate to the number of passengers.
112
128
1. In the SQL script result window, change the **View** to **Chart** to see a visualization of the results as a line chart. Change **Category column** to `PassengerCount`.
113
-
129
+
130
+
## Clean up
131
+
132
+
Pause your dedicated SQL Pool to reduce costs.
133
+
134
+
1. Navigate to **Manage** in your synapse workspace.
135
+
1. Select **SQL pools**.
136
+
1. Hover over SQLPOOL1 and select the **Pause** button.
0 commit comments