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
Copy file name to clipboardExpand all lines: docs/relational-databases/databases/sql-server-data-files-in-microsoft-azure.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ SQL Server Data Files in Microsoft Azure enables native support for SQL Server d
23
23
24
24
This topic introduces concepts and considerations that are central to storing SQL Server data files in Microsoft Azure Storage Service.
25
25
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).
27
27
28
28
## Why use SQL Server data files in Microsoft Azure?
29
29
@@ -181,10 +181,10 @@ Starting with SQL Server 2014, a new SQL Server object has been added to be used
181
181
**Database errors**
182
182
183
183
**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).
185
185
186
186
**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).
188
188
189
189
**Error code - 5120 Unable to open the physical file "%.\*ls". Operating system error %d: "%ls"**
Copy file name to clipboardExpand all lines: docs/relational-databases/tables/use-column-sets.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
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."
- A column set cannot be added to a table if that table already contains sparse columns.
33
33
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.
37
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.
38
37
- Only one column set is allowed per table.
39
38
40
39
- A column set is optional and is not required to use sparse columns.
@@ -136,7 +135,7 @@ GO
136
135
## Examples
137
136
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.
138
137
139
-
### A. Creating a table that has a column set
138
+
### A. Create a table that has a column set
140
139
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.
### 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
161
160
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.
### 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
174
173
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.
### 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
183
182
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.
### E. Observing the results of selecting the column set by name
197
+
### E. Observe the results of selecting the column set by name
199
198
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.
200
199
201
200
```sql
@@ -206,13 +205,13 @@ WHERE ProductionSpecification IS NOT NULL ;
DocID Title ProductionSpecification ProductionLocation`
228
227
1 Tire Spec 1 AXZZ217 27`
229
228
3 Tire Spec 2 AXW9R411 38`
@@ -240,9 +239,9 @@ GO
240
239
```
241
240
242
241
> [!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`.
244
243
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`.
Copy file name to clipboardExpand all lines: docs/t-sql/language-elements/try-catch-transact-sql.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -325,9 +325,7 @@ BEGIN CATCH
325
325
END CATCH;
326
326
GO
327
327
```
328
-
329
-
## Examples: [!INCLUDE[ssSDWfull](../../includes/sssdwfull-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]
330
-
328
+
331
329
### D. Using TRY...CATCH
332
330
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.
# ALTER DATABASE SCOPED CONFIGURATION (Transact-SQL)
@@ -35,7 +35,7 @@ This command enables several database configuration settings at the **individual
35
35
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:
36
36
37
37
- 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).
39
39
- Set the query optimizer cardinality estimation model independent of the database to compatibility level.
40
40
- Enable or disable parameter sniffing at the database level.
41
41
- Enable or disable query optimization hotfixes at the database level.
0 commit comments