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/storage/blobs/data-lake-storage-use-sql.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,11 @@ title: 'Tutorial: Azure Data Lake Storage, Azure Synapse'
3
3
titleSuffix: Azure Storage
4
4
description: This tutorial shows how to run SQL queries on an Azure Synapse serverless SQL endpoint to access data in an Azure Data Lake Storage enabled storage account.
5
5
author: jovanpop-msft
6
-
7
6
ms.service: azure-data-lake-storage
8
7
ms.topic: tutorial
9
8
ms.date: 03/07/2022
10
9
ms.author: normesta
11
10
ms.custom: devx-track-sql
12
-
#Customer intent: As an data engineer, I want to connect my data in Azure Storage so that I can easily run analytics on it.
13
11
---
14
12
15
13
# Tutorial: Query Azure Data Lake Storage using SQL language in Synapse Analytics
@@ -43,18 +41,18 @@ This tutorial uses flight data from the Bureau of Transportation Statistics. You
43
41
44
42
1. Download the [On_Time_Reporting_Carrier_On_Time_Performance_1987_present_2016_1.zip](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/tutorials/On_Time_Reporting_Carrier_On_Time_Performance_1987_present_2016_1.zip) file. This file contains the flight data.
45
43
46
-
2. Unzip the contents of the zipped file and make a note of the file name and the path of the file. You need this information in a later step.
44
+
1. Unzip the contents of the zipped file and make a note of the file name and the path of the file. You need this information in a later step.
47
45
48
46
### Copy source data into the storage account
49
47
50
48
1. Navigate to your new storage account in the Azure portal.
51
49
52
-
2. Select **Storage browser**->**Blob containers**->**Add container** and create a new container named **data**.
50
+
1. Select **Storage browser**->**Blob containers**->**Add container** and create a new container named **data**.
53
51
54
52
> [!div class="mx-imgBorder"]
55
53
> 
56
54
57
-
6. In storage browser, upload the `On_Time_Reporting_Carrier_On_Time_Performance_1987_present_2016_1.csv` file to the **data** folder.
55
+
1. In storage browser, upload the `On_Time_Reporting_Carrier_On_Time_Performance_1987_present_2016_1.csv` file to the **data** folder.
58
56
59
57
## Create an Azure Synapse workspace
60
58
@@ -78,8 +76,8 @@ To find the fully qualified server name:
78
76
1. Select on the workspace you want to connect to.
79
77
2. Go to overview.
80
78
3. Locate the full server name.
81
-
82
-

79
+
- For a dedicated SQL pool, use **SQL Endpoint**.
80
+
- For the serverless SQL pool, use **SQL on-demand endpoint**.
83
81
84
82
In this tutorial, you use Synapse Studio to query data from the CSV file that you uploaded to the storage account.
85
83
@@ -106,7 +104,7 @@ In this tutorial, you use Synapse Studio to query data from the CSV file that yo
106
104
107
105
When they're no longer needed, delete the resource group and all related resources. To do so, select the resource group for the storage account and workspace, and then and select **Delete**.
108
106
109
-
## Next steps
107
+
## Next step
110
108
111
109
> [!div class="nextstepaction"]
112
110
> [Azure Data Lake Storage, Azure Databricks & Spark](data-lake-storage-use-databricks-spark.md)
Copy file name to clipboardExpand all lines: articles/synapse-analytics/sql-data-warehouse/sql-data-warehouse-connect-overview.md
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
2
title: Connect to a SQL pool in Azure Synapse
3
3
description: Learn how to connect to an SQL pool in Azure Synapse.
4
-
author: joannapea
5
-
ms.author: joanpo
6
-
ms.reviewer: wiassaf
7
-
ms.date: 06/13/2022
4
+
author: WilliamDAssafMSFT
5
+
ms.author: wiassaf
6
+
ms.reviewer: joanpo
7
+
ms.date: 09/23/2024
8
8
ms.service: azure-synapse-analytics
9
9
ms.subservice: sql-dw
10
10
ms.topic: conceptual
@@ -18,6 +18,9 @@ ms.custom:
18
18
19
19
Get connected to a SQL pool in Azure Synapse.
20
20
21
+
> [!IMPORTANT]
22
+
> Use Microsoft Entra authentication when possible. For more information, see [Use Microsoft Entra authentication for authentication with Synapse SQL](../sql/active-directory-authentication.md).
23
+
21
24
## Find your server name
22
25
23
26
The server name in the following example is `sqlpoolservername.database.windows.net`. To find the fully qualified server name:
@@ -42,24 +45,32 @@ Here are examples of connection strings for popular drivers:
42
45
43
46
### ADO.NET connection string example
44
47
48
+
This simple example uses SQL authentication, but [Microsoft Entra authentication with ADO.NET is more secure and recommended](/sql/connect/ado-net/sql/azure-active-directory-authentication?view=azure-sqldw-latest&preserve-view=true).
This simple example uses SQL authentication, but [Microsoft Entra authentication with ODBC is more secure and recommended](/sql/connect/odbc/using-azure-active-directory?view=azure-sqldw-latest&preserve-view=true).
This simple example uses SQL authentication, but [Microsoft Entra authentication with PHP is more secure and recommended](/sql/connect/php/azure-active-directory?view=azure-sqldw-latest&preserve-view=true).
This simple example uses SQL authentication, but [Microsoft Entra authentication with JDBC is more secure and recommended](/sql/connect/jdbc/connecting-using-azure-active-directory-authentication?view=azure-sqldw-latest&preserve-view=true).
To connect and query with Visual Studio, see [Query with Visual Studio](sql-data-warehouse-query-visual-studio.md). To learn more about authentication options, see [Authentication to Azure Synapse Analytics](sql-data-warehouse-authentication.md).
description: Connection strings for Synapse SQL pool
4
-
author: joannapea
5
-
ms.author: joanpo
6
-
ms.reviewer: wiassaf
7
-
ms.date: 04/17/2018
4
+
author: WilliamDAssafMSFT
5
+
ms.author: wiassaf
6
+
ms.reviewer: joanpo
7
+
ms.date: 09/23/2024
8
8
ms.service: azure-synapse-analytics
9
9
ms.subservice: sql-dw
10
10
ms.topic: conceptual
@@ -17,35 +17,46 @@ ms.custom:
17
17
18
18
You can connect to a SQL pool in Azure Synapse with several different application protocols such as, [ADO.NET](/dotnet/framework/data/adonet?toc=/azure/synapse-analytics/sql-data-warehouse/toc.json&bc=/azure/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json), [ODBC](/sql/connect/odbc/windows/microsoft-odbc-driver-for-sql-server-on-windows?toc=/azure/synapse-analytics/sql-data-warehouse/toc.json&bc=/azure/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json&view=azure-sqldw-latest&preserve-view=true), [PHP](/sql/connect/php/overview-of-the-php-sql-driver?toc=/azure/synapse-analytics/sql-data-warehouse/toc.json&bc=/azure/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json&view=azure-sqldw-latest&preserve-view=true), and [JDBC](/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server?toc=/azure/synapse-analytics/sql-data-warehouse/toc.json&bc=/azure/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json&view=azure-sqldw-latest&preserve-view=true). Below are some examples of connections strings for each protocol. You can also use the Azure portal to build your connection string.
19
19
20
-
To build your connection string using the Azure portal, navigate to your SQL pool blade, under *Essentials* click on *Show database connection strings*.
20
+
> [!IMPORTANT]
21
+
> Use Microsoft Entra authentication when possible. For more information, see [Use Microsoft Entra authentication for authentication with Synapse SQL](../sql/active-directory-authentication.md).
22
+
23
+
To build your connection string using the Azure portal, navigate to your SQL pool blade, under **Essentials** select **Show database connection strings**.
21
24
22
25
## Sample ADO.NET connection string
23
26
27
+
This simple example uses SQL authentication, but [Microsoft Entra authentication with ADO.NET is more secure and recommended](/sql/connect/ado-net/sql/azure-active-directory-authentication?view=azure-sqldw-latest&preserve-view=true).
This simple example uses SQL authentication, but [Microsoft Entra authentication with ODBC is more secure and recommended](/sql/connect/odbc/using-azure-active-directory?view=azure-sqldw-latest&preserve-view=true).
This simple example uses SQL authentication, but [Microsoft Entra authentication with PHP is more secure and recommended](/sql/connect/php/azure-active-directory?view=azure-sqldw-latest&preserve-view=true).
This simple example uses SQL authentication, but [Microsoft Entra authentication with JDBC is more secure and recommended](/sql/connect/jdbc/connecting-using-azure-active-directory-authentication?view=azure-sqldw-latest&preserve-view=true).
Get connected to the Synapse SQL capability in Azure Synapse Analytics.
16
14
17
-
## Supported tools for serverless SQL pool
15
+
Get connected to the Synapse SQL capability in Azure Synapse Analytics.
18
16
19
-
[Azure Data Studio](/azure-data-studio/download-azure-data-studio) is fully supported starting from version 1.18.0. SSMS is partially supported starting from version 18.5, you can use it to connect and query only.
17
+
> [!IMPORTANT]
18
+
> Use Microsoft Entra authentication when possible. For more information, see [Use Microsoft Entra authentication for authentication with Synapse SQL](active-directory-authentication.md).
20
19
21
20
## Find your server name
22
21
23
-
The server name for the dedicated SQL pool in the following example is: showdemoweu.sql.azuresynapse.net.
24
-
The server name for the serverless SQL pool in the following example is: showdemoweu-ondemand.sql.azuresynapse.net.
22
+
The server name for the dedicated SQL pool in the following example is: `<server-name>.sql.azuresynapse.net`.
23
+
The server name for the serverless SQL pool in the following example is: `<server-name>-ondemand.sql.azuresynapse.net`.
25
24
26
25
To find the fully qualified server name:
27
26
@@ -30,14 +29,16 @@ To find the fully qualified server name:
30
29
3. Select on the workspace you want to connect to.
31
30
4. Go to overview.
32
31
5. Locate the full server name.
32
+
- For a dedicated SQL pool, use **SQL Endpoint**.
33
+
- For the serverless SQL pool, use **SQL on-demand endpoint**.
33
34
34
-
## **SQL pool**
35
+
## Supported tools
35
36
36
-

37
+
Use [Azure Data Studio](/azure-data-studio/download-azure-data-studio) or [SQL Server Management Studio (SSMS)](https://aka.ms/ssms).
37
38
38
-
## **serverless SQL pool**
39
-
40
-

39
+
For serverless SQL pools:
40
+
-[Azure Data Studio](/azure-data-studio/download-azure-data-studio) is fully supported starting from version 1.18.0.
41
+
-[SQL Server Management Studio](https://aka.ms/ssms) is partially supported starting from version 18.5, you can use it to connect and query only.
41
42
42
43
## Supported drivers and connection strings
43
44
Synapse SQL supports [ADO.NET](/dotnet/framework/data/adonet/), [ODBC](/sql/connect/odbc/windows/microsoft-odbc-driver-for-sql-server-on-windows), [PHP](/sql/connect/php/overview-of-the-php-sql-driver?f=255&MSPPError=-2147217396), and [JDBC](/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server). To find the latest version and documentation, select one of the preceding drivers. To automatically generate the connection string for the driver that you're using from the Azure portal, select **Show database connection strings** from the preceding example. Following are also some examples of what a connection string looks like for each driver.
This simple example uses SQL authentication, but [Microsoft Entra authentication with ADO.NET is more secure and recommended](/sql/connect/ado-net/sql/azure-active-directory-authentication?view=azure-sqldw-latest&preserve-view=true).
This simple example uses SQL authentication, but [Microsoft Entra authentication with ODBC is more secure and recommended](/sql/connect/odbc/using-azure-active-directory?view=azure-sqldw-latest&preserve-view=true).
This simple example uses SQL authentication, but [Microsoft Entra authentication with PHP is more secure and recommended](/sql/connect/php/azure-active-directory?view=azure-sqldw-latest&preserve-view=true).
This simple example uses SQL authentication, but [Microsoft Entra authentication with JDBC is more secure and recommended](/sql/connect/jdbc/connecting-using-azure-active-directory-authentication?view=azure-sqldw-latest&preserve-view=true).
@@ -83,5 +92,6 @@ Synapse SQL standardizes some settings during connection and object creation. Th
83
92
84
93
For executing **serverless SQL pool** queries, recommended tools are [Azure Data Studio](get-started-azure-data-studio.md) and Azure Synapse Studio.
85
94
86
-
## Next steps
95
+
## Related content
96
+
87
97
To connect and query with Visual Studio, see [Query with Visual Studio](../sql-data-warehouse/sql-data-warehouse-query-visual-studio.md?context=/azure/synapse-analytics/context/context). To learn more about authentication options, see [Authentication to Synapse SQL](sql-authentication.md?tabs=provisioned).
0 commit comments