Skip to content

Commit 5404b62

Browse files
committed
Merge branch 'main' into release-dallas
2 parents 53f1708 + dbcadf1 commit 5404b62

5 files changed

Lines changed: 24 additions & 27 deletions

File tree

docs/azure-data-studio/extensions/azure-monitor-logs-extension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ To set up an Azure Monitor Log workspace, follow the steps below.
5757
2. Fill in the **Connection Details** information.
5858
1. For **Connection type**, select *Azure Monitor Logs*.
5959
2. For **Workspace ID**, enter in your Log Analytics Workspace ID.
60-
3. For **Authentication Type**, use the default - *Azure Active Directory - Universal with MFA account*.
60+
3. For **Authentication type**, use the default - *Azure Active Directory - Universal with MFA account*.
6161
4. For **Account**, use your account information.
6262
5. For **Database**, select the same Workspace ID.
63-
6. For **Server Group**, use *Default*.
63+
6. For **Server group**, use *Default*.
6464
1. You can use this field to organize your servers in a specific group.
6565
7. For **Name (optional)**, leave blank.
6666
1. You can use this field to give your server an alias.

docs/relational-databases/databases/sql-server-data-files-in-microsoft-azure.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SQL Server Data Files in Microsoft Azure enables native support for SQL Server d
2323
2424
This topic introduces concepts and considerations that are central to storing SQL Server data files in Microsoft Azure Storage Service.
2525

26-
For a practical hands-on experience on how to use this feature, see [Tutorial: Using the Microsoft Azure Blob storage service with SQL Server 2016 databases](../tutorial-use-azure-blob-storage-service-with-sql-server-2016.md).
26+
For a practical hands-on experience on how to use this feature, see [Tutorial: Using the Microsoft Azure Blob Storage with SQL Server 2016 databases](../tutorial-use-azure-blob-storage-service-with-sql-server-2016.md).
2727

2828
## Why use SQL Server data files in Microsoft Azure?
2929

@@ -181,10 +181,10 @@ Starting with SQL Server 2014, a new SQL Server object has been added to be used
181181
**Database errors**
182182

183183
**Errors when creating a database**
184-
Resolution: Review the instructions given in Lesson 4 in [Tutorial: Using the Microsoft Azure Blob storage service with SQL Server 2016 databases](../tutorial-use-azure-blob-storage-service-with-sql-server-2016.md#4----restore-database-to-virtual-machine-from-url).
184+
Resolution: Review the instructions given in Lesson 4 in [Tutorial: Using the Microsoft Azure Blob Storage with SQL Server 2016 databases](../tutorial-use-azure-blob-storage-service-with-sql-server-2016.md#4----restore-database-to-virtual-machine-from-url).
185185

186186
**Errors when running the Alter statement**
187-
Resolution: Make sure to execute the Alter Database statement when the database is online. When copying the data files to Azure Storage, always create a page blob not a block blob. Otherwise, ALTER Database will fail. Review the instructions given in Lesson 7 in [Tutorial: Using the Microsoft Azure Blob storage service with SQL Server 2016 databases](../tutorial-use-azure-blob-storage-service-with-sql-server-2016.md).
187+
Resolution: Make sure to execute the Alter Database statement when the database is online. When copying the data files to Azure Storage, always create a page blob not a block blob. Otherwise, ALTER Database will fail. Review the instructions given in Lesson 7 in [Tutorial: Using the Microsoft Azure Blob Storage with SQL Server 2016 databases](../tutorial-use-azure-blob-storage-service-with-sql-server-2016.md).
188188

189189
**Error code - 5120 Unable to open the physical file "%.\*ls". Operating system error %d: "%ls"**
190190

docs/relational-databases/tables/use-column-sets.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
description: "Use Column Sets"
2+
description: "Use Column Sets to designate a column set to return all sparse columns in the table. A column set is an untyped XML representation that combines all the sparse columns of a table into a structured output."
33
title: "Use Column Sets"
44
ms.custom: ""
5-
ms.date: "07/09/2021"
5+
ms.date: "04/25/2022"
66
ms.prod: sql
77
ms.prod_service: "database-engine, sql-database, synapse-analytics, pdw"
88
ms.reviewer: ""
@@ -31,10 +31,9 @@ monikerRange: "=azuresqldb-current||>=sql-server-2016||>=sql-server-linux-2017||
3131

3232
- A column set cannot be added to a table if that table already contains sparse columns.
3333

34-
- The column set cannot be changed. To change a column set, you must delete and re-create the sparse columns and the column set.
35-
36-
- A column set can be added to a table that does not include any sparse columns. If sparse columns are later added to the table, they will appear in the column set.
34+
- The column set column cannot be changed or renamed. To change a column set, you must delete and re-create the sparse columns and the column set. Columns with the SPARSE keyword can be added and dropped from the table.
3735

36+
- A column set can be added to a table that does not include any sparse columns. If sparse columns are later added to the table, they will appear in the column set.
3837
- Only one column set is allowed per table.
3938

4039
- A column set is optional and is not required to use sparse columns.
@@ -136,7 +135,7 @@ GO
136135
## Examples
137136
In the following examples, a document table contains the common set of columns `DocID` and `Title`. The Production group wants a `ProductionSpecification` and `ProductionLocation` column for all production documents. The Marketing group wants a `MarketingSurveyGroup` column for marketing documents.
138137

139-
### A. Creating a table that has a column set
138+
### A. Create a table that has a column set
140139
The following example creates the table that uses sparse columns and includes the column set `SpecialPurposeColumns`. The example inserts two rows into the table, and then selects data from the table.
141140

142141
> [!NOTE]
@@ -157,7 +156,7 @@ CREATE TABLE DocumentStoreWithColumnSet
157156
GO
158157
```
159158

160-
### B. Inserting data to a table by using the names of the sparse columns
159+
### B. Insert data to a table using the names of the sparse columns
161160
The following examples insert two rows into the table that is created in example A. The examples use the names of the sparse columns and do not reference the column set.
162161

163162
```sql
@@ -170,7 +169,7 @@ VALUES (2, 'Survey 2142', 'Men 25 - 35');
170169
GO
171170
```
172171

173-
### C. Inserting data to a table by using the name of the column set
172+
### C. Insert data to a table by using the name of the column set
174173
The following example inserts a third row into the table that is created in example A. This time the names of the sparse columns are not used. Instead, the name of the column set is used, and the insert provides the values for two of the four sparse columns in XML format.
175174

176175
```sql
@@ -179,7 +178,7 @@ VALUES (3, 'Tire Spec 2', '<ProductionSpecification>AXW9R411</ProductionSpecific
179178
GO
180179
```
181180

182-
### D. Observing the results of a column set when SELECT * is used
181+
### D. Observe the results of a column set when SELECT * is used
183182
The following example selects all the columns from the table that contains a column set. It returns an XML column with the combined values of the sparse columns. It does not return the sparse columns individually.
184183

185184
```sql
@@ -188,14 +187,14 @@ SELECT DocID, Title, SpecialPurposeColumns FROM DocumentStoreWithColumnSet ;
188187

189188
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
190189

191-
```
190+
```output
192191
DocID Title SpecialPurposeColumns
193192
1 Tire Spec 1 <ProductionSpecification>AXZZ217</ProductionSpecification><ProductionLocation>27</ProductionLocation>
194193
2 Survey 2142 <MarketingSurveyGroup>Men 25 - 35</MarketingSurveyGroup>
195194
3 Tire Spec 2 <ProductionSpecification>AXW9R411</ProductionSpecification><ProductionLocation>38</ProductionLocation>
196195
```
197196

198-
### E. Observing the results of selecting the column set by name
197+
### E. Observe the results of selecting the column set by name
199198
Because the Production department is not interested in the marketing data, this example adds a `WHERE` clause to restrict the output. The example uses the name of the column set.
200199

201200
```sql
@@ -206,13 +205,13 @@ WHERE ProductionSpecification IS NOT NULL ;
206205

207206
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
208207

209-
```
208+
```output
210209
DocID Title SpecialPurposeColumns
211210
1 Tire Spec 1 <ProductionSpecification>AXZZ217</ProductionSpecification><ProductionLocation>27</ProductionLocation>
212211
3 Tire Spec 2 <ProductionSpecification>AXW9R411</ProductionSpecification><ProductionLocation>38</ProductionLocation>
213212
```
214213

215-
### F. Observing the results of selecting sparse columns by name
214+
### F. Observe the results of selecting sparse columns by name
216215
When a table contains a column set, you can still query the table by using the individual column names as shown in the following example.
217216

218217
```sql
@@ -223,7 +222,7 @@ WHERE ProductionSpecification IS NOT NULL ;
223222

224223
[!INCLUDE[ssResult](../../includes/ssresult-md.md)]
225224

226-
```
225+
```output
227226
DocID Title ProductionSpecification ProductionLocation`
228227
1 Tire Spec 1 AXZZ217 27`
229228
3 Tire Spec 2 AXW9R411 38`
@@ -240,9 +239,9 @@ GO
240239
```
241240

242241
> [!IMPORTANT]
243-
> An UPDATE statement that uses a column set updates all the sparse columns in the table. Sparse columns that are not referenced are updated to NULL.
242+
> An UPDATE statement that uses a column set updates all the sparse columns in the table. Sparse columns that are not referenced are updated to `NULL`.
244243
245-
The following example updates the third record, but only specifies the value of one of the two populated columns. The second column `ProductionLocation` is not included in the `UPDATE` statement and is updated to NULL.
244+
The following example updates the third record, but only specifies the value of one of the two populated columns. The second column `ProductionLocation` is not included in the `UPDATE` statement and is updated to `NULL`.
246245

247246
```sql
248247
UPDATE DocumentStoreWithColumnSet
@@ -251,5 +250,5 @@ WHERE DocID = 3 ;
251250
GO
252251
```
253252

254-
## See also
253+
## Next steps
255254
- [Use Sparse Columns](../../relational-databases/tables/use-sparse-columns.md)

docs/t-sql/language-elements/try-catch-transact-sql.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,7 @@ BEGIN CATCH
325325
END CATCH;
326326
GO
327327
```
328-
329-
## Examples: [!INCLUDE[ssSDWfull](../../includes/sssdwfull-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]
330-
328+
331329
### D. Using TRY...CATCH
332330
The following example shows a `SELECT` statement that will generate a divide-by-zero error. The error causes execution to jump to the associated `CATCH` block.
333331

docs/t-sql/statements/alter-database-scoped-configuration-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ author: WilliamDAssafMSFT
2323
ms.author: wiassaf
2424
ms.reviewer: ""
2525
ms.custom: "seo-lt-2019"
26-
ms.date: 02/17/2022
26+
ms.date: 04/25/2022
2727
monikerRange: "= azuresqldb-current || = azuresqldb-mi-current || >= sql-server-2016 || >= sql-server-linux-2017 ||=azure-sqldw-latest"
2828
---
2929
# ALTER DATABASE SCOPED CONFIGURATION (Transact-SQL)
@@ -35,7 +35,7 @@ This command enables several database configuration settings at the **individual
3535
Following settings are supported in [!INCLUDE[sssdsfull](../../includes/sssdsfull-md.md)], [!INCLUDE[ssSDSMIfull](../../includes/sssdsmifull-md.md)] and in [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] as indicated by the **APPLIES TO** line for each setting in the [Arguments](#arguments) section:
3636

3737
- Clear procedure cache.
38-
- Set the MAXDOP parameter to an arbitrary value (1,2, ...) for the primary database based on what works best for that particular database and set a different value (such as 0) for all secondary database used (such as for reporting queries).
38+
- Set the MAXDOP parameter to a recommended value (1,2, ...) for the primary database based on what works best for that particular workload, and set a different value for secondary replica databases used by reporting queries. For guidance on choosing a MAXDOP, review [Configure the max degree of parallelism Server Configuration Option](../../database-engine/configure-windows/configure-the-max-degree-of-parallelism-server-configuration-option.md).
3939
- Set the query optimizer cardinality estimation model independent of the database to compatibility level.
4040
- Enable or disable parameter sniffing at the database level.
4141
- Enable or disable query optimization hotfixes at the database level.

0 commit comments

Comments
 (0)