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/sql-database/sql-database-connect-query-portal.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Query a SQL Database using the query editor in the Azure portal
3
-
description: Learn how to connect to SQL Database in the Azure portal by using the SQL Query Editor. Then, run Transact-SQL (T-SQL) statements to query and edit data.
3
+
description: Learn how to use the Query Editor to run Transact-SQL (T-SQL) queries against an Azure SQL Database.
# Quickstart: Use the Azure portal's query editor to query a SQL database
17
17
18
-
The query editor is a tool in the Azure portal for running SQL queries against your Azure SQL Database or Azure Synapse Analytics (formerly SQL Data Warehouse). In this quickstart, you'll use the query editor to run Transact-SQL (T-SQL) queries.
18
+
The query editor is a tool in the Azure portal for running SQL queries against your Azure SQL Database or Azure Synapse Analytics (formerly SQL Data Warehouse).
19
+
20
+
In this quickstart, you'll use the Azure portal's SQL Database query editor to run Transact-SQL (T-SQL) queries against an Azure SQL Database.
21
+
19
22
20
23
## Prerequisites
21
24
@@ -25,15 +28,15 @@ To complete this quickstart you need the AdventureWorksLT sample database. If yo
25
28
26
29
### Configure network settings
27
30
28
-
If you get an error in the query editor saying: *Your local network settings might be preventing the Query Editor from issuing queries. Please click here for instructions on how to configure your network settings*, or *A connection to the server could not be established. This might indicate an issue with your local firewall configuration or your network proxy settings.*. The following important information should help with these errors:
31
+
If you get one of the following errors in the query editor: *Your local network settings might be preventing the Query Editor from issuing queries. Please click here for instructions on how to configure your network settings*, or *A connection to the server could not be established. This might indicate an issue with your local firewall configuration or your network proxy settings.*. The following important information should help with these errors:
29
32
30
33
> [!IMPORTANT]
31
34
> The query editor uses ports 443 and 1443 to communicate. Ensure you have enabled outbound HTTPS traffic on these ports. You also need to [add your outbound IP address to the server's allowed firewall rules](sql-database-server-level-firewall-rule.md) to access your databases and data warehouses.
32
35
33
36
34
37
## Open the SQL Database Query Editor
35
38
36
-
1. Sign in to the [Azure portal](https://portal.azure.com/) and select your SQL database.
39
+
1. Sign in to the [Azure portal](https://portal.azure.com/) and select the SQL database you want to query.
37
40
38
41
2. In the **SQL database** menu, select **Query editor (preview)**.
39
42
@@ -43,9 +46,9 @@ If you get an error in the query editor saying: *Your local network settings mig
43
46
44
47
## Connect using SQL Authentication
45
48
46
-
Even though you're signed in to the portal, you still need to provide credentials to access the SQL database. If you use Azure Active Directory to connect to your database, skip to [the following section](#connect-using-azure-active-directory).
49
+
Even though you're signed into the portal, you still need to provide credentials to access the SQL database. For using Azure Active Directory to connect to your database, skip to [the following section](#connect-using-azure-active-directory).
47
50
48
-
1. In the **Login** page, under the **SQL server authentication** label, enter a **Login** and **Password** for a user that has access to the database. If you're not sure, use the login and password for the Server admin of the database's server.
51
+
1. In the **Login** page, under **SQL server authentication**, enter a **Login** and **Password** for a user that has access to the database. If you're not sure, use the login and password for the Server admin of the database's server.
@@ -60,6 +63,8 @@ Configuring an Azure Active Directory (Azure AD) administrator enables you to us
60
63
> * Email accounts (for example, outlook.com, gmail.com, yahoo.com, and so on) aren't yet supported as Azure AD admins. Make sure to choose a user created either natively in the Azure AD, or federated into the Azure AD.
61
64
> * Azure AD admin sign in doesn't work with accounts that have 2-factor authentication enabled.
62
65
66
+
### Set an Active Directory admin for the database server
67
+
63
68
1. In the Azure portal, select your SQL server.
64
69
65
70
2. On the **SQL server** menu, select **Active Directory admin**.
0 commit comments