Azure SQL Database Query Editor Setup

Azure SQL Database Query Editor

Question

You have an Azure SQL database named Db1 that runs on an Azure SQL server named SQLserver1.

You need to ensure that you can use the query editor on the Azure portal to query Db1.

What should you do?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-connect-query-portal

To use the query editor on the Azure portal to query an Azure SQL database named Db1 that runs on an Azure SQL server named SQLserver1, you need to perform the following steps:

D. Configure the Firewalls and virtual networks settings for SQLserver1:

  1. Open the Azure portal and sign in with your credentials.
  2. Search for SQL server SQLserver1 in the search box.
  3. Click on the SQL server name to open the SQL server blade.
  4. Click on the Firewalls and virtual networks option from the left pane.
  5. On the Firewalls and virtual networks blade, you will see options to configure firewall settings.
  6. Select the "Add client IP" option to add your IP address to the list of allowed IP addresses.
  7. You can also add the IP address range of the network from which you want to access the SQL server.
  8. Click on the Save button to save the changes.

Once you have configured the Firewalls and virtual networks settings for SQLserver1, you can proceed to the next step:

A. Copy the ADO.NET connection string of Db1 and paste the string to the query editor:

  1. Go back to the SQL server blade and click on the Databases option from the left pane.
  2. Select the Db1 database from the list of databases.
  3. Click on the "Show database connection strings" option.
  4. Copy the ADO.NET connection string for the database.
  5. Go to the Azure portal and open the query editor.
  6. Paste the ADO.NET connection string into the query editor.
  7. Click on the Connect button to connect to the database.
  8. You can now use the query editor to query Db1.

Note: Before you can use the query editor to query the database, you need to ensure that your IP address is allowed in the firewall settings of the SQL server. If your IP address is not allowed, you will not be able to connect to the database using the query editor.