How to connect to Azure sql Database from Azure Data Studio

Similarly, we can connect Azure Data Studio to Azure SQL using the below steps. Check out how to create an Azure SQL database if you have not yet created your Azure SQL database.

  1. Open Azure Data Studio on your PC.
  2. Click  New dropdown –> Click the New Connection option, or click Create a Connection button.
connect to azure sql database from azure data studio

3. On the Connection window, provide the below details.

  • Connection type: Choose the connection type as SQL server.
  • Choose the Parameters option.
  • Server: Specify the server name of your Azure SQL. You will get the server name by navigating to the Azure SQL database in the Azure Portal. Refer to the below note.
  • Authentication type: Choose SQL Login as the authentication type.
  • Username and Password: Specify the Username and password you specified during the Azure SQL database creation in the Azure Portal.
  • Finally, click on the Connect button.
how to connect Azure data studio to Azure SQL

Note: Navigate to the Azure SQL database in the Azure Portal and click on the Copy to Clipboard button next to the server name to copy the server name.

azure data studio connect to sql server

You might get the error an instance-specific error occurred while establishing a connection to SQL server after clicking the Connect button.

4. Click the Add an Account dropdown and then the Add an Account option.

Connect Azure Data Studio and Azure SQL

5. Login with your Azure credentials and click the OK button on the next pop-up.

Connection between Azure Data Studio and Azure SQL

4. Now, we can connect the Azure Data Studio with Azure SQL DB successfully.

How to Connect Azure Data Studio and Azure SQL database

Video Tutorial

You may also like following the articles below

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!