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/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](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
+
> [!IMPORTANT]
21
+
> Use Microsoft Entra authentication when possible. For more information, see [Use Microsoft Entra authentication for authentication with Synapse SQL](active-directory-authentication.md).
22
+
20
23
To build your connection string using the Azure portal, navigate to your SQL pool blade, under *Essentials* click on *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