Connectivity settings for Azure SQL Database and Azure Synapse Analytics - Azure SQL Database and Azure Synapse Analytics (2024)

  • Article

Applies to: Connectivity settings for Azure SQL Database and Azure Synapse Analytics - Azure SQL Database and Azure Synapse Analytics (1) Azure SQL Database Connectivity settings for Azure SQL Database and Azure Synapse Analytics - Azure SQL Database and Azure Synapse Analytics (2) Azure Synapse Analytics (dedicated SQL pools only)

This article introduces settings that control connectivity to the server for Azure SQL Database and dedicated SQL pool (formerly SQL DW) in Azure Synapse Analytics.

  • For more information on various components that direct network traffic and connection policies, see connectivity architecture.
  • This article does not apply to Azure SQL Managed Instance, instead see Connect your application to Azure SQL Managed Instance.
  • This article does not apply to dedicated SQL pools in Azure Synapse Analytics workspaces. See Azure Synapse Analytics IP firewall rules for guidance on how to configure IP firewall rules for Azure Synapse Analytics with workspaces.

Networking and connectivity

These settings apply to all SQL Database and dedicated SQL pool (formerly SQL DW) databases associated with the server. You can change these settings from the networking tab of your logical server:

Connectivity settings for Azure SQL Database and Azure Synapse Analytics - Azure SQL Database and Azure Synapse Analytics (3)

Change public network access

It's possible to change the public network access via the Azure portal, Azure PowerShell, and the Azure CLI.

  • Portal
  • PowerShell
  • Azure CLI

To enable public network access for the logical server hosting your databases, go to the Networking page in the Azure portal for your logical server in Azure, choose the Public access tab, and then set the Public network access to Select networks.

From this page, you can add a virtual network rule, as well as configure firewall rules for your public endpoint.

Choose the Private access tab to configure a private endpoint.

Note

These settings take effect immediately after they're applied. Your customers might experience connection loss if they don't meet the requirements for each setting.

Deny public network access

The default for the Public network access setting is Disable. Customers can choose to connect to a database by using either public endpoints (with IP-based server-level firewall rules or with virtual-network firewall rules), or private endpoints (by using Azure Private Link), as outlined in the network access overview.

When Public network access is set to Disable, only connections from private endpoints are allowed. All connections from public endpoints will be denied with an error message similar to:

Error 47073An instance-specific error occurred while establishing a connection to SQL Server. The public network interface on this server is not accessible. To connect to this server, use the Private Endpoint from inside your virtual network.

When Public network access is set to Disable, any attempts to add, remove, or edit any firewall rules will be denied with an error message similar to:

Error 42101Unable to create or modify firewall rules when public network interface for the server is disabled. To manage server or database level firewall rules, please enable the public network interface.

Ensure that Public network access is set to Selected networks to be able to add, remove, or edit any firewall rules for Azure SQL Database and Azure Synapse Analytics.

Minimal TLS version

The minimal Transport Layer Security (TLS) version setting allows customers to choose which version of TLS their SQL database uses. It's possible to change the minimum TLS version by using the Azure portal, Azure PowerShell, and the Azure CLI.

Currently, we support TLS 1.0, 1.1, and 1.2. Setting a minimal TLS version ensures that newer TLS versions are supported. For example, choosing a TLS version 1.1 means only connections with TLS 1.1 and 1.2 are accepted, and connections with TLS 1.0 are rejected. After you test to confirm that your applications support it, we recommend setting the minimal TLS version to 1.2. This version includes fixes for vulnerabilities in previous versions and is the highest version of TLS that's supported in Azure SQL Database.

Important

The default for the minimal TLS version is to allow all versions. After you enforce a version of TLS, it's not possible to revert to the default.

For customers with applications that rely on older versions of TLS, we recommend setting the minimal TLS version according to the requirements of your applications. If application requirements are unknown or workloads rely on older drivers that are no longer maintained, we recommend not setting any minimal TLS version.

For more information, see TLS considerations for SQL Database connectivity.

After you set the minimal TLS version, customers who are using a TLS version lower than the minimum TLS version of the server will fail to authenticate, with the following error:

Error 47072Login failed with invalid TLS version

Note

When you configure a minimum TLS version, that minimum version is enforced at the application layer. Tools that attempt to determine TLS support at the protocol layer might return TLS versions in addition to the minimum required version when run directly against the SQL Database endpoint.

  • Portal
  • PowerShell
  • Azure CLI

In the Azure portal, go to your SQL server resource. Under the Security settings, select Networking and then choose the Connectivity tab. Select the Minimum TLS Version desired for all databases associated with the server, and select Save.

Change the connection policy

Connection policy determines how customers connect to Azure SQL Database.

We highly recommend the Redirect connection policy over the Proxy connection policy for the lowest latency and highest throughput.

It's possible to change the connection policy by using the Azure portal, Azure PowerShell, and the Azure CLI.

  • Portal
  • PowerShell
  • Azure CLI

It's possible to change your connection policy for your logical server by using the Azure portal.

In the Azure portal, go to your SQL server resource. Under the Security settings, select Networking and then choose the Connectivity tab. Choose the desired connection policy, and select Save.

Related content

  • Azure SQL Database and Azure Synapse Analytics connectivity architecture
  • conn-policy
Connectivity settings for Azure SQL Database and Azure Synapse Analytics - Azure SQL Database and Azure Synapse Analytics (2024)

FAQs

How to connect Azure SQL Database to Azure Synapse Analytics? ›

Create the Azure Synapse Link connection
  1. On the left pane of the Azure portal, select Integrate.
  2. On the Integrate pane, select the plus sign (+), and then select Link connection.
  3. Under Source linked service, select New.
  4. Enter the information for your source Azure SQL database.
Dec 19, 2022

What are the options for the SQL connectivity setting in the Azure portal? ›

Connection scenarios
OptionDescription
PublicConnect to SQL Server over the internet.
PrivateConnect to SQL Server in the same virtual network.
LocalConnect to SQL Server locally on the same virtual machine.
Jun 28, 2023

What is the difference between Azure SQL Database and Azure Synapse Analytics? ›

Azure SQL DB is designed to handle much greater concurrency than Azure Synapse Analytics. Azure Synapse Analytics supports up to 128 concurrent queries, while Azure SQL DB can process up to 6400.

How do I change the connectivity method in Azure SQL Database? ›

In the Azure portal, go to your SQL server resource. Under the Security settings, select Networking and then choose the Connectivity tab. Choose the desired connection policy, and select Save. It's possible to change the connection policy for your logical server by using Azure PowerShell.

How do I connect to my Azure SQL Database? ›

To connect to Azure SQL Database:
  1. On the File menu, select Connect to SQL Azure (this option is enabled after the creation of a project). ...
  2. In the connection dialog box, enter or select the server name of Azure SQL Database.
  3. Enter, select, or Browse the Database name.
  4. Enter or select Username.
  5. Enter the Password.
Aug 1, 2023

How to run SQL query in Azure Synapse analytics? ›

  1. Connect to a dedicated SQL pool (formerly SQL DW) in Azure Synapse Analytics.
  2. Create a table in your new database.
  3. Insert rows into your new table.
  4. Query the new table and view the results.
  5. Use the query window table to verify your connection properties.
Feb 29, 2024

How to configure ODBC connection to the Azure SQL Database? ›

To configure an ODBC data source using the ODBC driver for SQL Server:
  1. In Windows, search for ODBC Data Sources, and open the ODBC Data Sources desktop app.
  2. Select Add.
  3. Select ODBC Driver 17 for SQL Server then Finish.
  4. Select Active Directory Integrated then Next.
  5. Select the database with the sample data then Next.
Nov 16, 2023

What do you configure in Azure portal in order to provision an Azure SQL Database? ›

Provision an Azure SQL Database
  1. From the Azure Portal, search for “SQL databases” in the search box at the top, then click SQL databases from the list of options.
  2. On the SQL databases blade, select + Create.
  3. On the Create SQL Database page, select the following options on the Basics tab and then click Next: Networking.

Which port is used for connectivity to Azure SQL? ›

For connections to use this mode, clients need to allow outbound communication from the client to Azure SQL Database gateway IP addresses on port 1433.

Does Azure Synapse use SQL Server? ›

Azure Synapse Dedicated SQL Pools (formerly SQL DW) is on the Azure SQL logical server. A serverless SQL pool stores and computes large-scale data in a distributing data processing system. The Azure serverless SQL pool doesn't mandate users to set up infrastructure and maintain clusters.

What is the difference between dedicated SQL pool and Azure Synapse analytics? ›

Azure Synapse Analytics is an analytics service that brings together enterprise data warehousing and Big Data analytics. Dedicated SQL pool (formerly SQL DW) refers to the enterprise data warehousing features that are available in Azure Synapse Analytics.

What is the difference between SQL DB and Azure SQL DB? ›

As a cloud-based relational database service, Microsoft SQL in Azure offers many of the same features as SQL Server. However, Azure SQL includes extra cost-saving features, such as scaling on demand and paying only for what you use.

How to test connectivity to Azure SQL server? ›

  1. Set the parameters on the script. You must set the server name and database name. User and password are optional, but best practices.
  2. Run it. Results are displayed in the output window. ...
  3. Examine the output for any issues detected, and recommended steps to resolve the issue.

How to configure Azure SQL server? ›

Under SQL databases, leave Resource type set to Single database, and select Create. On the Basics tab of the Create SQL Database form, under Project details, select the desired Azure Subscription. For Resource group, select Create new, enter myResourceGroup, and select OK. For Database name, enter mySampleDatabase.

How to configure Azure SQL server to allow remote connections? ›

Use SQL Server Management Studio
  1. In Object Explorer, right-click a server and select Properties.
  2. Select the Connections node.
  3. Under Remote server connections, select or clear the Allow remote connections to this server check box.
Aug 2, 2023

How do I import data from SQL Server to Azure Synapse? ›

Load data into Azure Synapse Analytics
  1. Select + New connection.
  2. Select Azure SQL Database from the gallery, and select Continue. ...
  3. In the New connection (Azure SQL Database) page, select your server name and DB name from the dropdown list, and specify the username and password.
Jul 20, 2023

Does Azure Synapse support SQL? ›

Features of Azure Synapse Analytics

It ingests all types of data, including relational and non-relational data, and it lets you explore this data with SQL.

What is Azure Synapse link for SQL Server? ›

A link connection identifies a mapping relationship between an SQL Server 2022 and an Azure Synapse Analytics dedicated SQL pool. You can create, manage, monitor and delete link connections in your Synapse workspace.

How do I connect my Azure Web App to Azure SQL Database? ›

Configure database connectivity
  1. Go to your Azure SQL Server in the Azure portal.
  2. Under the Security section, select Networking.
  3. Under the Public access tab, next to Public network access, select Selected networks.
  4. Under the Firewall rules section, select the Add your client IPv4 address button.
Mar 15, 2023

Top Articles
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 5895

Rating: 4.6 / 5 (76 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.