Skip to content

Commit ef2669f

Browse files
authored
Merge pull request MicrosoftDocs#9085 from MicrosoftDocs/FromPrivateRepo
Resolve syncing conflicts from FromPrivateRepo to live
2 parents 1d4634d + 758c793 commit ef2669f

9 files changed

Lines changed: 338 additions & 290 deletions

File tree

azure-sql/database/scale-resources.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article explains how to scale your database in Azure SQL Datab
44
author: dimitri-furman
55
ms.author: dfurman
66
ms.reviewer: wiassaf, mathoma, urmilano
7-
ms.date: 05/21/2023
7+
ms.date: 06/19/2023
88
ms.service: sql-db-mi
99
ms.subservice: performance
1010
ms.topic: conceptual
@@ -41,9 +41,6 @@ The service tier, compute tier, and resource limits for a database, elastic pool
4141
4242
You can adjust the resources allocated to your database by changing service objective, or scaling, to meet workload demands. This also enables you to only pay for the resources that you need, when you need them. Please refer to the [note](#impact-of-scale-up-or-scale-down-operations) on the potential impact that a scale operation might have on an application.
4343

44-
> [!NOTE]
45-
> Dynamic scaling is different from autoscaling. Autoscaling is when a service scales automatically based on criteria, whereas dynamic scaling allows for manual scaling with a minimal downtime. Single databases in Azure SQL Database can be scaled manually, or in the case of the [Serverless tier](serverless-tier-overview.md), set to automatically scale the compute resources. [Elastic pools](elastic-pool-overview.md), which allow databases to share resources in a pool, can currently only be scaled manually.
46-
4744
Azure SQL Database offers the ability to dynamically scale your databases:
4845

4946
- With a [single database](single-database-scale.md), you can use either [DTU](resource-limits-dtu-single-databases.md) or [vCore](resource-limits-vcore-single-databases.md) models to define maximum amount of resources that will be assigned to each database.
@@ -53,6 +50,11 @@ Azure SQL Managed Instance allows you to scale as well:
5350

5451
- [SQL Managed Instance](../managed-instance/sql-managed-instance-paas-overview.md) uses [vCores](../managed-instance/sql-managed-instance-paas-overview.md#vcore-based-purchasing-model) mode and enables you to define maximum CPU cores and maximum of storage allocated to your instance. All databases within the managed instance will share the resources allocated to the instance.
5552

53+
> [!TIP]
54+
> Dynamic scaling lets customers change resource allocation manually or programmatically. The dynamic scaling capability is available for all Azure SQL Database and Azure SQL Managed Instance resources.
55+
>
56+
> In addition to supporting dynamic scaling, the [Serverless tier](serverless-tier-overview.md) in Azure SQL Database supports autoscaling. Databases in the Serverless tier scale resources automatically within a customer-specified range, based on workload demand. No customer action is required to scale the database.
57+
5658
## Impact of scale up or scale down operations
5759

5860
Initiating a scale up, or scale down action, in any of the flavors mentioned above, restarts the database engine process, and moves it to a different virtual machine if needed. Moving the database engine process to a new virtual machine is an **online process** during which you can continue using your existing Azure SQL Database service. Once the target database engine is ready to process queries, open connections to the current database engine will be [terminated](single-database-scale.md#impact), and uncommitted transactions will be rolled back. New connections will be made to the target database engine.
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
1+
---
2+
author: rwestMSFT
3+
ms.author: randolphwest
4+
ms.date: 06/19/2023
5+
ms.service: sql
6+
ms.topic: include
7+
---
8+
This feature will be removed in a future version of [!INCLUDE [msconame-md](msconame-md.md)] [!INCLUDE [ssnoversion-md](ssnoversion-md.md)]. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

docs/relational-databases/polybase/polybase-pushdown-computation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ The following T-SQL functions or syntax will prevent pushdown computation:
177177
- `RAND`
178178
- `CHECKSUM`
179179
- `BINARY_CHECKSUM`
180+
- `HASHBYTES`
180181
- `ISJSON`
181182
- `JSON_VALUE`
182183
- `JSON_QUERY`
Lines changed: 43 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,53 @@
11
---
2-
title: "View a Saved Trace (Transact-SQL)"
3-
description: "View a Saved Trace (Transact-SQL)"
2+
title: "Get information about a saved trace (Transact-SQL)"
3+
description: "This article describes how to use built-in functions to view information about a saved trace."
44
author: "MashaMSFT"
55
ms.author: "mathoma"
6-
ms.date: "03/04/2017"
6+
ms.reviewer: randolphwest
7+
ms.date: 06/19/2023
78
ms.service: sql
89
ms.topic: conceptual
910
helpviewer_keywords:
1011
- "traces [SQL Server], viewing"
1112
- "displaying traces"
1213
- "viewing traces"
1314
---
14-
# View a Saved Trace (Transact-SQL)
15-
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
16-
This topic describes how to use built-in functions to view a saved trace.
17-
18-
### To view a specific trace
19-
20-
1. Execute **fn_trace_getinfo** by specifying the ID of the trace about which information is needed. This function returns a table that lists the trace, trace property, and information about the property.
21-
22-
Invoke the function this way:
23-
24-
```
25-
SELECT *
26-
FROM ::fn_trace_getinfo(trace_id)
27-
```
28-
29-
### To view all existing traces
30-
31-
1. Execute **fn_trace_getinfo** by specifying `0` or `default`. This function returns a table that lists all the traces, their properties, and information about these properties.
32-
33-
Invoke the function as follows:
34-
35-
```
36-
SELECT *
37-
FROM ::fn_trace_getinfo(default)
38-
```
39-
40-
## .NET Framework Security
41-
To run the built-in function **fn_trace_getinfo**, the user needs the following permission:
42-
43-
ALTER TRACE on the server.
44-
45-
## See Also
46-
[sys.fn_trace_getinfo (Transact-SQL)](../../relational-databases/system-functions/sys-fn-trace-getinfo-transact-sql.md)
47-
[View and Analyze Traces with SQL Server Profiler](../../tools/sql-server-profiler/view-and-analyze-traces-with-sql-server-profiler.md)
48-
49-
15+
# Get information about a saved trace (Transact-SQL)
16+
17+
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
18+
19+
This article describes how to use built-in functions to view a saved trace.
20+
21+
> [!IMPORTANT]
22+
> [!INCLUDE[ssNoteDepFutureAvoid](../../includes/ssnotedepfutureavoid-md.md)] Use Extended Events instead.
23+
24+
## View a specific trace
25+
26+
1. Execute `sys.fn_trace_getinfo` by specifying the ID of the trace about which information is needed. This function returns a table that lists the trace, trace property, and information about the property.
27+
28+
Invoke the function this way:
29+
30+
```sql
31+
SELECT *
32+
FROM ::fn_trace_getinfo(trace_id);
33+
```
34+
35+
## View all existing traces
36+
37+
1. Execute `sys.fn_trace_getinfo` by specifying `0` or `default`. This function returns a table that lists all the traces, their properties, and information about these properties.
38+
39+
Invoke the function as follows:
40+
41+
```sql
42+
SELECT *
43+
FROM ::fn_trace_getinfo(default);
44+
```
45+
46+
## .NET Framework security
47+
48+
Requires ALTER TRACE on the server.
49+
50+
## See also
51+
52+
- [sys.fn_trace_getinfo (Transact-SQL)](../system-functions/sys-fn-trace-getinfo-transact-sql.md)
53+
- [View and analyze traces with SQL Server Profiler](../../tools/sql-server-profiler/view-and-analyze-traces-with-sql-server-profiler.md)

docs/sql-server/azure-arc/view-databases.md

Lines changed: 41 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ title: View SQL Server databases
33
description: View databases in Azure from an instance of Azure Arc-enabled SQL Server. Use to inventory databases, and view properties of databases centrally, as Arc-enabled resources.
44
author: ntakru
55
ms.author: nikitatakru
6-
ms.reviewer: mikeray
7-
ms.date: 11/03/2022
6+
ms.reviewer: mikeray, randolphwest
7+
ms.date: 06/19/2023
88
ms.service: sql
99
ms.topic: conceptual
1010
---
11-
1211
# View SQL Server databases - Azure Arc
1312

1413
[!INCLUDE [sqlserver](../../includes/applies-to-version/sqlserver.md)]
@@ -19,11 +18,11 @@ You can inventory and view SQL Server databases in Azure.
1918

2019
Before you begin, verify that the SQL Server instance that hosts the databases:
2120

22-
* Is hosted on a physical or virtual machine running Windows operating system.
23-
* Is [!INCLUDE [sssql14-md](../../includes/sssql14-md.md)] or later.
24-
* Is connected to Azure Arc. See [Connect your SQL Server to Azure Arc](connect.md).
25-
* Is connected to the internet directly or through a proxy server.
26-
21+
- Is hosted on a physical or virtual machine running Windows operating system.
22+
- Is [!INCLUDE [sssql14-md](../../includes/sssql14-md.md)] or later.
23+
- Is connected to Azure Arc. See [Connect your SQL Server to Azure Arc](connect.md).
24+
- Is connected to the internet directly or through a proxy server.
25+
2726
## Inventory databases
2827

2928
1. Locate the Azure Arc-enabled SQL Server instance in Azure portal
@@ -42,63 +41,63 @@ After you create, modify, or delete a database, changes are visible in Azure por
4241

4342
:::image type="content" source="media/view-databases/database-properties.png" alt-text="Screenshot of Azure portal, SQL Server database properties.":::
4443

45-
## How to Leverage Azure Resource Graph to Query Data
44+
## How to use Azure Resource Graph to query data
4645

47-
Here are some example scenarios showing how you use [Azure Resource Graph ](/azure/governance/resource-graph/overview)to query data which is available with the release of viewing Databases for Azure Arc-enabled SQL Server.
46+
Here are some example scenarios showing how you use [Azure Resource Graph](/azure/governance/resource-graph/overview) to query data that is available with the release of viewing databases for Azure Arc-enabled SQL Server.
4847

4948
### Scenario 1: Get 10 databases
5049

5150
Get 10 databases and return what properties are available to query:
5251

5352
```kusto
54-
Resources
53+
resources
5554
| where type =~ 'Microsoft.AzureArcData/sqlServerInstances/databases'
5655
| limit 10
5756
```
5857

59-
Many of the most interesting properties to query on are in the `properties` property. To explore the available properties run this query and then select **See details** on a row.  This returns the properties in a json viewer on the right side.
58+
Many of the most interesting properties to query on are in the `properties` property. To explore the available properties, run this query and then select **See details** on a row.  This returns the properties in a json viewer on the right side.
6059

6160
```kusto
62-
Resources
61+
resources
6362
| where type =~ 'Microsoft.AzureArcData/sqlServerInstances/databases'
6463
| project properties
6564
```
6665

6766
You can navigate the hierarchy of the properties json by using a period in between each level of the properties json.
6867

69-
### Scenario 2: Get all the databases that are not encrypted
68+
### Scenario 2: Get all the databases that aren't encrypted
7069

7170
```kusto
72-
Resources
71+
resources
7372
| where type =~ 'Microsoft.AzureArcData/sqlServerInstances/databases'
7473
| where properties.databaseOptions.isEncrypted == false
7574
```
7675

77-
### Scenario 3: Obtain the count of databases which are encrypted vs not encrypted
76+
### Scenario 3: Obtain the count of databases that are encrypted vs not encrypted
7877

7978
```kusto
80-
Resources
81-
|extend isEncrypted =properties.databaseOptions.isEncrypted
82-
|where type contains("microsoft.azurearcdata/sqlserverinstances/databases")
83-
|summarize count() by tostring(isEncrypted)
79+
resources
80+
| extend isEncrypted =properties.databaseOptions.isEncrypted
81+
| where type contains("microsoft.azurearcdata/sqlserverinstances/databases")
82+
| summarize count() by tostring(isEncrypted)
8483
| order by ['isEncrypted'] asc
8584
```
86-
 
87-
### Scenario 4: Show all the databases which are not encrypted
85+
86+
### Scenario 4: Show all the databases that aren't encrypted
8887

8988
```kusto
90-
Resources
91-
|extend isEncrypted =properties.databaseOptions.isEncrypted
92-
|where type contains("microsoft.azurearcdata/sqlserverinstances/databases") and isEncrypted ==false
93-
|project name,isEncrypted
89+
resources
90+
| extend isEncrypted =properties.databaseOptions.isEncrypted
91+
| where type contains("microsoft.azurearcdata/sqlserverinstances/databases") and isEncrypted ==false
92+
| project name,isEncrypted
9493
```
9594

9695
### Scenario 5: Get all the databases by region and compatibility level
9796

9897
This example returns all databases in `westus3` location with compatibility level of 160:
9998

10099
```kusto
101-
Resources
100+
resources
102101
| where type =~ 'Microsoft.AzureArcData/sqlServerInstances/databases'
103102
| where location == "westus3"
104103
| where  properties.compatibilityLevel == "160"
@@ -107,44 +106,39 @@ Resources
107106
### Scenario 6: Show the SQL Server version distribution
108107

109108
```kusto
110-
Resources
111-
|extend SQLversion =properties.version
112-
|where type contains("microsoft.azurearcdata/sqlserverinstances")
113-
|summarize count() by tostring(SQLversion)
109+
resources
110+
| extend SQLversion =properties.version
111+
| where type contains("microsoft.azurearcdata/sqlserverinstances")
112+
| summarize count() by tostring(SQLversion)
114113
```
115-
 
114+
116115
### Scenario 7: SQL Server by version, edition, and license type
117116

118117
```kusto
119-
Resources
120-
|extend SQLversion =properties.version
121-
|extend SQLEdition =properties.edition
122-
|extend lincentype =properties.licenseType
123-
|where type contains("microsoft.azurearcdata/sqlserverinstances")
124-
|project name,SQLversion,SQLEdition,lincensetype
118+
resources
119+
| extend SQLversion =properties.version
120+
| extend SQLEdition =properties.edition
121+
| extend lincentype =properties.licenseType
122+
| where type contains("microsoft.azurearcdata/sqlserverinstances")
123+
| project name,SQLversion,SQLEdition,lincentype
125124
```
126125

127126
### Scenario 8: Show a count of databases by compatibility
128127

129128
This example returns the number of databases, ordered by the compatibility level:
130129

131130
```kusto
132-
Resources
131+
resources
133132
| where type =~ 'Microsoft.AzureArcData/sqlServerInstances/databases'
134133
| summarize count() by tostring(properties.compatibilityLevel)
135134
| order by properties_compatibilityLevel asc
136135
```
137136

138137
You can also [create charts and pin them to dashboards](/azure/governance/resource-graph/first-query-portal).
139138

140-
![Diagram of a pie chart that displays the query results for the count of databases by compatibility level.](media/view-databases/database-chart.png)
141-
142-
139+
:::image type="content" source="media/view-databases/database-chart.png" alt-text="Diagram of a pie chart that displays the query results for the count of databases by compatibility level.":::
143140

144141
## Next steps
145142

146-
* [Protect Azure Arc-enabled SQL Server with Microsoft Defender for Cloud](configure-advanced-data-security.md)
147-
148-
* [Configure SQL Assessment | Azure Arc-enabled SQL Server](assess.md)
149-
150-
143+
- [Protect Azure Arc-enabled SQL Server with Microsoft Defender for Cloud](configure-advanced-data-security.md)
144+
- [Configure SQL Assessment | Azure Arc-enabled SQL Server](assess.md)

0 commit comments

Comments
 (0)