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
{{ message }}
Repository navigation
Commit 85dfe74
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: azure-sql/database/database-advisor-implement-performance-recommendations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Azure SQL Database learns and adapts with your application. Azure SQL Database h
19
19
20
20
## Performance overview
21
21
22
-
The **Performance overview** provides a summary of your database performance, and helps you with performance tuning and troubleshooting.
22
+
The **Performance overview**in the Azure portal provides a summary of your database performance, and helps you with performance tuning and troubleshooting.
23
23
24
24
- If present, the **Recommendations** tile provides a breakdown of tuning recommendations for your database. Selecting this tile takes you to **[Performance recommendation options](database-advisor-find-recommendations-portal.md#viewing-recommendations)**.
25
25
- The **Tuning activity** tile provides a summary of the ongoing and completed tuning actions for your database, giving you a quick view into the history of tuning activity. Selecting this tile takes you to the recommendations and tuning history for your database. For more information, see **[automatic tuning](automatic-tuning-overview.md)**.
Query editor (preview) is a tool to run SQL queries against Azure SQL Database in the Azure portal. It's designed for lightweight querying and object exploration in your database.
26
+
The Query editor (preview) is a tool to run SQL queries against Azure SQL Database in the Azure portal. It's designed for lightweight querying and object exploration in your database. You can run T-SQL queries against your database, as well as edit data in the build-in tabular [data editor](#data-editor).
27
27
28
-
- For a quickstart on the query editor, see [Quickstart: Use the Azure portal query editor (preview) to query Azure SQL Database](connect-query-portal.md).
28
+
- For a quickstart on the query editor, see [Quickstart: Use the Azure portal query editor (preview)](connect-query-portal.md).
29
29
- For more advanced object explorer capabilities and management functions, use [Azure Data Studio](/sql/azure-data-studio/quickstart-sql-database) or [SQL Server Management Studio (SSMS)](connect-query-ssms.md).
30
30
31
31
## Connect via the query editor
32
32
33
-
There are two authentication options for query editor - SQL Authentication and Azure Active Directory Authentication.
33
+
There are two authentication options for query editor: SQL Authentication or Azure Active Directory (Azure AD) Authentication.
34
34
35
-
### Permissions required to access the query editor
36
-
37
-
Users need at least the Azure role-based access control (RBAC) permission **Read access to the server and database** to use the query editor.
35
+
### Authentication
38
36
39
-
### SQL Authentication
37
+
For examples, see [Quickstart: Use the Azure portal query editor (preview) to query Azure SQL Database](connect-query-portal.md).
40
38
41
-
To use SQL Authentication to connect to an Azure SQL database via the query editor, you must have a login in the logical server's `master` database or a contained SQL user in the desired user database. For more information, see [Logins](logins-create-manage.md). Enter your username and password, then select **OK**.
39
+
- To use SQL Authentication to connect to an Azure SQL database via the query editor, you must have a login in the logical server's `master` database or a contained SQL user in the desired user database. For more information, see [Logins](logins-create-manage.md).
40
+
- Enter your username and password, then select **OK**.
41
+
- To use Active Directory authentication to connect to an Azure SQL database via the query editor, your organization must have AD set up, and you must have an [Azure AD user created in the database](authentication-azure-ad-logins-tutorial.md). The Azure portal shows your current AD account.
42
+
- Select `Continue as <user@domain>`.
42
43
43
-
### Active Directory authentication
44
+
### Permissions required to access the query editor
44
45
45
-
To use Active Directory authentication to connect to an Azure SQL database via the query editor, your organization must have AD set up, and you must have an [Azure AD user created in the database](authentication-azure-ad-logins-tutorial.md). The Azure portal shows your current AD account. Select `Continue as <user@domain>`.
46
+
Users need at least the Azure role-based access control (RBAC) permission **Read access to the server and database** to use the query editor.
46
47
47
48
## Navigate query editor
48
49
@@ -52,7 +53,7 @@ There are three main sections of the query editor:
52
53
- Object explorer
53
54
- Query window
54
55
55
-
:::image type="content" source="media/query-editor/query-editor.png" alt-text="Screenshot that shows the query editor window with three red rectangles highlighting the sections.":::
56
+
:::image type="content" source="media/query-editor/query-editor.png" alt-text="Screenshot from the Azure portal showing red rectangles highlighting the Query editor in the main menu and the Navigation bar, Object Explorer, and Query window.":::
56
57
57
58
### Navigation bar
58
59
@@ -75,23 +76,25 @@ The object explorer allows you to view and perform tasks against your database's
75
76
76
77
The data editor allows you to modify data in an existing row, add a new row of data to the table, or delete a row of data. To access data editor, in the object explorer expand **Tables**, then select the ellipses to the right of the table name and select **Edit Data (Preview)**.
77
78
78
-
To modify data in an existing row, select the value you want to change, make your change, and then select **Save** at the top.
79
+
**To modify data** in an existing row, select the value you want to change, make your change, and then select **Save** at the top.
80
+
81
+
- If the column is an identity column, you can't edit that value. You'll see the error: "Save failed: Failed to execute query. Error: Cannot update identity column *column_name*".
79
82
80
-
To add a new row, select **Create New Row** and enter the values you want to add. There are certain data types you cannot add or work with in this context.
83
+
**To add a new row**, select **Create New Row** and enter the values you want to add. There are certain data types you can't add or work with in this context.
81
84
82
-
- If the column is an identity column, you cannot add a value in that field. You will see the error "Save failed: Can not set value in identity columns *column_name*" at the bottom.
83
-
- Columns with default constraints are not honored. The data editor will not generate the default value, it expects you to enter a value. It is not recommended to use the data editor for tables that have default column constraints.
84
-
- Computed columns are not calculated. You will see the error "Save failed: Failed to execute query. Error: The column *column_name* cannot be modified because it is either a computed column or is the result of a UNION operator." It is not recommended to use the data editor for tables that have computed columns.
85
+
- If the column is an identity column, you can't add a value in that field. You'll see the error: "Save failed: Can not set value in identity columns *column_name*" at the bottom.
86
+
- Columns with default constraints aren't honored. The data editor won't generate the default value, it expects you to enter a value. It isn't recommended to use the data editor for tables that have default column constraints.
87
+
- Computed columns aren't calculated. You'll see the error "Save failed: Failed to execute query. Error: The column *column_name* cannot be modified because it is either a computed column or is the result of a UNION operator." It is not recommended to use the data editor for tables that have computed columns.
85
88
86
-
To delete a row of data, select the row and select **Delete Row**.
89
+
**To delete a row** of data, select the row and select **Delete Row**.
87
90
88
-
- If the row has a primary key, and that primary key has a foreign key relationship to another table, when the row is deleted, the related rows in the other table(s) will also be deleted.
91
+
- If the row has a primary key, and that primary key has a foreign key relationship to another table, when the row is deleted, the related rows in the other table(s) will also be deleted.
89
92
90
93
### Query window
91
94
92
95
This window allows you to type or paste a query, then run it. The results of the query are shown in the **Results** pane.
93
96
94
-
You can cancel your query. As noted under [Considerations and limitations](#considerations-and-limitations), there is a five-minute timeout period.
97
+
You can cancel your query. As noted under [Considerations and limitations](#considerations-and-limitations), there's a five-minute timeout period.
95
98
96
99
The **Save query** button allows you to save the query text to your computer as a *.sql* file.
97
100
@@ -116,8 +119,7 @@ The following considerations and limitations apply when connecting to and queryi
116
119
### Connection considerations
117
120
118
121
- For public connections to the query editor, you need to [add your outbound IP address to the server's allowed firewall rules](firewall-create-server-level-portal-quickstart.md) to access your databases.
119
-
120
-
You don't need to add your IP address to the SQL server firewall rules if you have a Private Link connection set up on the server, and you connect to the server from within the private virtual network.
122
+
- You don't need to add your IP address to the SQL server firewall rules if you have a Private Link connection set up on the server, and you connect to the server from within the private virtual network.
0 commit comments