Skip to content

Commit 0574e67

Browse files
author
stevestein
committed
sqldb - update network statement
1 parent 413bf75 commit 0574e67

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

articles/sql-database/sql-database-connect-query-portal.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ The query editor is a tool in the Azure portal for executing SQL queries against
1919

2020
## Prerequisites
2121

22-
To complete this tutorial you need the AdventureWorksLT sample SQL Database. If you don't have a working copy of the AdventureWorksLT SQL Database, use the following quickstart to quickly create one:
22+
To complete this quickstart you need the AdventureWorksLT SQL Database. If you don't have a working copy of the AdventureWorksLT SQL Database, use the following quickstart to quickly create one:
2323

24-
- [Quickstart: Create a single database in Azure SQL Database using the Azure portal, PowerShell, and Azure CLI](sql-database-single-database-get-started.md)
24+
- [Quickstart: Create a single database in Azure SQL Database using the Azure portal, PowerShell, or Azure CLI](sql-database-single-database-get-started.md)
25+
26+
### Configure network settings
27+
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*. The following important information should help get past this:
29+
30+
> [!IMPORTANT]
31+
> 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.
2532
26-
> [!NOTE]
27-
> The query editor uses ports 443 and 1443 to communicate. Please 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 to access your databases and data warehouses.
2833

2934
## Open the SQL Database Query Editor
3035

@@ -71,7 +76,7 @@ Configuring an Azure Active Directory (Azure AD) administrator enables you to us
7176

7277
7. In the **SQL database** menu, select **Query editor (preview)**. In the **Login** page, under the **Active Directory authentication** label, a message appears saying you have been signed in if you're an Azure AD admin. Then select the **Continue as** *\<your user or group ID>* button. If the page indicates that you have not successfully logged in, you may need to refresh the page.
7378

74-
## Run a query to view data
79+
## Run a Select query
7580

7681
1. Paste the following query into the query editor:
7782

@@ -86,9 +91,11 @@ Configuring an Azure Active Directory (Azure AD) administrator enables you to us
8691

8792
![query editor results](./media/sql-database-connect-query-portal/query-editor-results.png)
8893

89-
## Run a query to insert data
94+
3. Optionally, you can save the query as a .sql file, or export the returned data as a .json, .csv, or .xml file.
95+
96+
## Run an Insert query
9097

91-
Run the following [INSERT](/sql/t-sql/statements/insert-transact-sql/) Transact-SQL statement to add a new product in the `SalesLT.Product` table.
98+
Run the following [INSERT](/sql/t-sql/statements/insert-transact-sql/) T-SQL statement to add a new product in the `SalesLT.Product` table.
9299

93100
1. Replace the previous query with this one.
94101

@@ -116,9 +123,9 @@ Run the following [INSERT](/sql/t-sql/statements/insert-transact-sql/) Transact-
116123
2. Select **Run** to insert a new row in the `Product` table. The **Messages** pane displays **Query succeeded: Affected rows: 1**.
117124

118125

119-
## Run a query to update data
126+
## Run an Update query
120127

121-
Run the following [UPDATE](/sql/t-sql/queries/update-transact-sql/) Transact-SQL statement to modify your new product.
128+
Run the following [UPDATE](/sql/t-sql/queries/update-transact-sql/) T-SQL statement to modify your new product.
122129

123130
1. Replace the previous query with this one.
124131

@@ -130,9 +137,9 @@ Run the following [UPDATE](/sql/t-sql/queries/update-transact-sql/) Transact-SQL
130137

131138
2. Select **Run** to update the specified row in the `Product` table. The **Messages** pane displays **Query succeeded: Affected rows: 1**.
132139

133-
## Run a query to delete data
140+
## Run a Delete query
134141

135-
Run the following [DELETE](/sql/t-sql/statements/delete-transact-sql/) Transact-SQL statement to remove your new product.
142+
Run the following [DELETE](/sql/t-sql/statements/delete-transact-sql/) T-SQL statement to remove your new product.
136143

137144
1. Replace the previous query with this one:
138145

0 commit comments

Comments
 (0)