Skip to content

Commit ab9ba40

Browse files
authored
Merge pull request #26958 from MicrosoftDocs/main
5/03 AM Publish
2 parents c5e7205 + ca0579b commit ab9ba40

8 files changed

Lines changed: 29 additions & 33 deletions

File tree

azure-sql/database/doc-changes-updates-release-notes-whats-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ms.custom:
2121
> * [Azure SQL Database](doc-changes-updates-release-notes-whats-new.md)
2222
> * [Azure SQL Managed Instance](../managed-instance/doc-changes-updates-release-notes-whats-new.md)
2323
24-
This article summarizes the documentation changes associated with new features and improvements in the recent releases of [Azure SQL Database](https://azure.microsoft.com/products/azure-sql/database/). To learn more about Azure SQL Database, see [What is Azure SQL Database?](sql-database-paas-overview.md)
24+
This article summarizes the documentation changes associated with new features and improvements in the recent releases of [Azure SQL Database](https://azure.microsoft.com/products/azure-sql/database/). To learn more about Azure SQL Database, see [What is Azure SQL Database?](sql-database-paas-overview.md).
2525

2626
## Preview
2727

azure-sql/database/job-automation-overview.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ description: "Use Elastic Jobs for Job Automation to run Transact-SQL (T-SQL) sc
44
author: williamdassafMSFT
55
ms.author: wiassaf
66
ms.reviewer: wiassaf, mathoma
7-
ms.date: 2/1/2021
7+
ms.date: 05/03/2023
88
ms.service: sql-database
99
ms.subservice: elastic-pools
1010
ms.topic: conceptual
11-
ms.custom:
12-
- sqldbrb=1
13-
- contperf-fy21q3
11+
ms.custom: sqldbrb=1
1412
dev_langs:
1513
- "TSQL"
1614
---
@@ -29,15 +27,15 @@ Every job logs the status of execution and also automatically retries the operat
2927

3028
There are several scenarios when you could use elastic job automation:
3129

32-
- Automate management tasks and schedule them to run every weekday, after hours, etc.
30+
- **Automate management tasks and schedule them to run every weekday, after hours, etc.**
3331
- Deploy schema changes, credentials management, performance data collection or tenant (customer) telemetry collection.
3432
- Update reference data (information common across all databases), load data from Azure Blob storage.
35-
- Configure jobs to execute across a collection of databases on a recurring basis, such as during off-peak hours.
33+
- **Configure jobs to execute across a collection of databases on a recurring basis, such as during off-peak hours.**
3634
- Collect query results from a set of databases into a central table on an on-going basis. Performance queries can be continually executed and configured to trigger additional tasks to be executed.
37-
- Collect data for reporting
35+
- **Collect data for reporting**
3836
- Aggregate data from a collection of databases into a single destination table.
3937
- Execute longer running data processing queries across a large set of databases, for example the collection of customer telemetry. Results are collected into a single destination table for further analysis.
40-
- Data movements
38+
- **Data movement**
4139

4240
### Automation on other platforms
4341

@@ -63,19 +61,19 @@ It is worth noting differences between SQL Agent (available in SQL Server and as
6361

6462
**Elastic Jobs** provide the ability to run one or more T-SQL scripts in parallel, across a large number of databases, on a schedule or on-demand.
6563

66-
You can run scheduled jobs against any combination of databases: one or more individual databases, all databases on a server, all databases in an elastic pool, or shard map, with the added flexibility to include or exclude any specific database. Jobs can run across multiple servers, multiple pools, and can even run against databases in different subscriptions. Servers and pools are dynamically enumerated at runtime, so jobs run against all databases that exist in the target group at the time of execution.
64+
You can run scheduled jobs against any combination of databases: one or more individual databases, all databases on a server, all databases in an elastic pool, with the added flexibility to include or exclude any specific database. Jobs can run across multiple servers, multiple pools, and can even run against databases in different subscriptions. Servers and pools are dynamically enumerated at runtime, so jobs run against all databases that exist in the target group at the time of execution.
6765

6866
The following image shows a job agent executing jobs across the different types of target groups:
6967

70-
![Elastic Job agent conceptual model](./media/job-automation-overview/conceptual-diagram.png)
68+
:::image type="content" source="./media/job-automation-overview/conceptual-diagram.png" alt-text="Conceptual diagram of Elastic Job agent.":::
7169

7270
### Elastic job components
7371

7472
|Component | Description (additional details are below the table) |
7573
|---------|---------|
7674
|[**Elastic Job agent**](#elastic-job-agent) | The Azure resource you create to run and manage Jobs. |
7775
|[**Job database**](#elastic-job-database) | A database in Azure SQL Database that the job agent uses to store job related data, job definitions, etc. |
78-
|[**Target group**](#target-group) | The set of servers, pools, databases, and shard maps to run a job against. |
76+
|[**Target group**](#target-group) | The set of servers, pools, and databases to run a job against. |
7977
|[**Job**](#elastic-jobs-and-job-steps) | A job is a unit of work that is composed of one or more job steps. Job steps specify the T-SQL script to run, as well as other details required to execute the script. |
8078

8179
#### Elastic job agent
@@ -114,7 +112,6 @@ A *target group* defines the set of databases a job step will execute on. A targ
114112
- **Logical SQL server** - if a server is specified, all databases that exist in the server at the time of the job execution are part of the group. The `master` database credential must be provided so that the group can be enumerated and updated prior to job execution. For more information on logical servers, see [What is a server in Azure SQL Database and Azure Synapse Analytics?](logical-servers.md).
115113
- **Elastic pool** - if an elastic pool is specified, all databases that are in the elastic pool at the time of the job execution are part of the group. As for a server, the `master` database credential must be provided so that the group can be updated prior to the job execution.
116114
- **Single database** - specify one or more individual databases to be part of the group.
117-
- **Shard map** - databases of a shard map.
118115

119116
> [!TIP]
120117
> At the moment of job execution, *dynamic enumeration* re-evaluates the set of databases in target groups that include servers or pools. Dynamic enumeration ensures that **jobs run across all databases that exist in the server or pool at the time of job execution**. Re-evaluating the list of databases at runtime is specifically useful for scenarios where pool or server membership changes frequently.
@@ -125,18 +122,17 @@ A target group can include databases in multiple subscriptions, and across multi
125122

126123
The following examples show how different target group definitions are dynamically enumerated at the moment of job execution to determine which databases the job will run:
127124

128-
![Target group examples](./media/job-automation-overview/targetgroup-examples1.png)
125+
:::image type="content" source="./media/job-automation-overview/targetgroup-examples1.png" alt-text="Diagram of target group examples.":::
129126

130127
**Example 1** shows a target group that consists of a list of individual databases. When a job step is executed using this target group, the job step's action will be executed in each of those databases.<br>
131128
**Example 2** shows a target group that contains a server as a target. When a job step is executed using this target group, the server is dynamically enumerated to determine the list of databases that are currently in the server. The job step's action will be executed in each of those databases.<br>
132129
**Example 3** shows a similar target group as *Example 2*, but an individual database is specifically excluded. The job step's action will *not* be executed in the excluded database.<br>
133130
**Example 4** shows a target group that contains an elastic pool as a target. Similar to *Example 2*, the pool will be dynamically enumerated at job run time to determine the list of databases in the pool.
134131
<br><br>
135132

136-
![Additional target group examples](./media/job-automation-overview/targetgroup-examples2.png)
133+
:::image type="content" source="./media/job-automation-overview/targetgroup-examples2.png" alt-text="Diagram of additional target group examples.":::
137134

138-
**Example 5** and **Example 6** show advanced scenarios where servers, elastic pools, and databases can be combined using include and exclude rules.<br>
139-
**Example 7** shows that the shards in a shard map can also be evaluated at job run time.
135+
**Example 5** and **Example 6** show advanced scenarios where servers, elastic pools, and databases can be combined using include and exclude rules.
140136

141137
> [!NOTE]
142138
> The Job database itself can be the target of a job. In this scenario, the Job database is treated just like any other target database. The job user must be created and granted sufficient permissions in the Job database, and the database scoped credential for the job user must also exist in the Job database, just like it does for any other target database.
@@ -175,4 +171,4 @@ To ensure resources aren't overburdened when running jobs against databases in a
175171

176172
- [How to create and manage elastic jobs](elastic-jobs-overview.md)
177173
- [Create and manage Elastic Jobs using PowerShell](elastic-jobs-powershell-create.md)
178-
- [Create and manage Elastic Jobs using Transact-SQL (T-SQL)](elastic-jobs-tsql-create-manage.md)
174+
- [Create and manage Elastic Jobs using Transact-SQL (T-SQL)](elastic-jobs-tsql-create-manage.md)
-14.1 KB
Loading

azure-sql/toc.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,7 @@
404404
href: database/service-tiers-sql-database-vcore.md
405405
- name: DTU model
406406
href: database/service-tiers-dtu.md
407-
- name: Business continuity
408-
items:
409-
- name: Overview
410-
href: database/business-continuity-high-availability-disaster-recover-hadr-overview.md
411-
- name: High availability
412-
href: database/high-availability-sla.md
407+
413408
- name: Connectivity
414409
items:
415410
- name: Connectivity architecture
@@ -512,6 +507,10 @@
512507

513508
- name: Business continuity
514509
items:
510+
- name: Overview
511+
href: database/business-continuity-high-availability-disaster-recover-hadr-overview.md
512+
- name: High availability
513+
href: database/high-availability-sla.md
515514
- name: Automated backups
516515
href: database/automated-backups-overview.md
517516
- name: Active geo-replication

docs/relational-databases/databases/database-snapshots-sql-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A database snapshot is a read-only, static view of a [!INCLUDE[ssNoVersion](../.
2525
Multiple snapshots can exist on a given source database. Each database snapshot persists until it is explicitly dropped by the database owner.
2626

2727
> [!NOTE]
28-
> Database snapshots are unrelated to snapshot backups, snapshot isolation of transactions, or snapshot replication.
28+
> Database snapshots are unrelated to snapshot backups, Transact-SQL snapshot backups, snapshot isolation of transactions, or snapshot replication.
2929
3030
**In this Topic:**
3131

docs/relational-databases/performance/intelligent-query-processing-feedback.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn about query processing feedback features, part of the Intelli
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: katsmith
7-
ms.date: 09/29/2022
7+
ms.date: 05/02/2023
88
ms.service: sql
99
ms.subservice: configuration
1010
ms.topic: conceptual
@@ -339,7 +339,7 @@ Currently in preview for [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] a
339339

340340
Starting with [!INCLUDE[sql-server-2022](../../includes/sssql22-md.md)]), the Cardinality Estimation (CE) feedback is part of the [intelligent query processing family of features](intelligent-query-processing.md) and addresses suboptimal query execution plans for repeating queries when these issues result from incorrect CE model assumptions. This scenario helps with reducing regression risks related to the default CE when upgrading from older versions of the Database Engine.
341341

342-
Because no single set of CE models and assumptions can accommodate the vast array of customer workloads and data distributions, CE feedback provides an adaptable solution based on query runtime characteristics. CE feedback will identify and use a model assumption that better fits a given query and data distribution to improve query execution plan quality. Feedback is applied when significant model estimation errors resulting in performance drops are found.
342+
Because no single set of CE models and assumptions can accommodate the vast array of customer workloads and data distributions, CE feedback provides an adaptable solution based on query runtime characteristics. CE feedback will identify and use a model assumption that better fits a given query and data distribution to improve query execution plan quality. Currently, CE Feedback can identify plan operators where the estimated number of rows and the actual number of rows are very different. Feedback is applied when significant model estimation errors occur, and there is a viable alternate model to try.
343343

344344
- Starting with [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)], when Query Store for secondary replicas is enabled, CE feedback is not replica-aware for secondary replicas in availability groups. CE feedback currently only benefits primary replicas. For more information, see [Query Store for secondary replicas](query-store-for-secondary-replicas.md).
345345

@@ -355,7 +355,7 @@ CE feedback learns which CE model assumptions are optimal over time and then app
355355

356356
1. CE feedback **identifies** model-related assumptions and evaluates whether they're accurate for repeating queries.
357357

358-
1. If an assumption looks incorrect, a subsequent execution of the same query is tested with a query plan that adjusts the impactful CE model assumption and **verifies** if it helps.
358+
1. If an assumption looks incorrect, a subsequent execution of the same query is tested with a query plan that adjusts the impactful CE model assumption and **verifies** if it helps. We identify incorrectness by looking at actual vs. estimated rows from plan operators. Not all errors can be corrected by model variants available in CE feedback.
359359

360360
1. If it improves plan quality, the old query plan is **replaced** with a query plan that uses the appropriate [USE HINT query hint](../../t-sql/queries/hints-transact-sql-query.md#l-using-use-hint) that adjusts the estimation model, implemented through the [Query Store hint](query-store-hints.md) mechanism.
361361

docs/relational-databases/system-catalog-views/sys-sql-expression-dependencies-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ monikerRange: ">=aps-pdw-2016||=azure-sqldw-latest||>=sql-server-2016||>=sql-ser
100100
USE AdventureWorks2012;
101101
GO
102102
SELECT OBJECT_NAME(referencing_id) AS referencing_entity_name,
103-
o.type_desc AS referencing_desciption,
103+
o.type_desc AS referencing_description,
104104
COALESCE(COL_NAME(referencing_id, referencing_minor_id), '(n/a)') AS referencing_minor_id,
105105
referencing_class_desc,
106106
referenced_server_name, referenced_database_name, referenced_schema_name,
@@ -122,7 +122,7 @@ USE AdventureWorks2012;
122122
GO
123123
SELECT OBJECT_SCHEMA_NAME ( referencing_id ) AS referencing_schema_name,
124124
OBJECT_NAME(referencing_id) AS referencing_entity_name,
125-
o.type_desc AS referencing_desciption,
125+
o.type_desc AS referencing_description,
126126
COALESCE(COL_NAME(referencing_id, referencing_minor_id), '(n/a)') AS referencing_minor_id,
127127
referencing_class_desc, referenced_class_desc,
128128
referenced_server_name, referenced_database_name, referenced_schema_name,

docs/t-sql/statements/create-external-data-source-transact-sql.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: CREATE EXTERNAL DATA SOURCE creates an external data source used to
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: randolphwest
7-
ms.date: 03/28/2023
7+
ms.date: 05/02/2023
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -1318,8 +1318,9 @@ There are multiple ways to create a shared access signature:
13181318
| Read data from multiple files and subfolders | Read and List |
13191319
| Use Create External Table as Select (CETAS) | Read, Create, List and Write |
13201320

1321-
- For Azure Blog Storage `Allowed Services`: `Blob` checkbox must be selected to generate the SAS token.
1322-
- For Azure Data Lake Gen2 `Allowed Services`: `Container` and `Object` checkbox must be selected to generate the SAS token.
1321+
- For Azure Blob Storage and Azure Data Lake Gen 2:
1322+
- Allowed services: `Blob` must be selected to generate the SAS token
1323+
- Allowed resource types: `Container` and `Object` must be selected to generate the SAS token
13231324
- When the `TYPE` = `BLOB_STORAGE`, the credential must be created using `SHARED ACCESS SIGNATURE` as the identity. Furthermore, the SAS token should be configured as follows:
13241325
- Exclude the leading `?` when configured as the secret.
13251326
- Have at least read permission on the file that should be loaded (for example `srt=o&sp=r`).

0 commit comments

Comments
 (0)