Skip to content

Commit 9c5f02a

Browse files
authored
Merge pull request #4383 from MicrosoftDocs/FromPublicRepo
Confirm merge from FromPublicRepo to master to sync with https://github.com/MicrosoftDocs/sql-docs (branch live)
2 parents af5eef6 + 1e1d61f commit 9c5f02a

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs/relational-databases/indexes/enable-indexes-and-constraints.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ ms.workload: "On Demand"
7171
|ALTER INDEX REBUILD.|The action fails.|The action succeeds.|
7272
|DROP INDEX.|The action succeeds.|The action succeeds.|
7373
|CREATE INDEX WITH DROP_EXISTING.|The action fails.|The action succeeds.|
74-
74+
75+
- When rebuilding disabled compressed nonclustered indexes, data_compression will default to 'none', meaning that indexes will be uncompressed. This is due to compression settings metadata is lost when nonclustered indexes are disabled. To work around this you must specifiy explicit data compression in rebuild statement.
76+
7577
### <a name="Security"></a> Security
7678

7779
#### <a name="Permissions"></a> Permissions

docs/relational-databases/tables/primary-and-foreign-key-constraints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ms.workload: "Active"
4242

4343
When you specify a primary key constraint for a table, the [!INCLUDE[ssDE](../../includes/ssde-md.md)] enforces data uniqueness by automatically creating a unique index for the primary key columns. This index also permits fast access to data when the primary key is used in queries. If a primary key constraint is defined on more than one column, values may be duplicated within one column, but each combination of values from all the columns in the primary key constraint definition must be unique.
4444

45-
As shown in the following illustration, the **ProductID** and **VendorID** columns in the **Purchasing.ProductVendor** table form a composite primary key constraint for this table. This makes sure that that every row in the **ProductVendor** table has a unique combination of **ProductID** and **VendorID**. This prevents the insertion of duplicate rows.
45+
As shown in the following illustration, the **ProductID** and **VendorID** columns in the **Purchasing.ProductVendor** table form a composite primary key constraint for this table. This makes sure that every row in the **ProductVendor** table has a unique combination of **ProductID** and **VendorID**. This prevents the insertion of duplicate rows.
4646

4747
![Composite PRIMARY KEY constraint](../../relational-databases/tables/media/fund04.gif "Composite PRIMARY KEY constraint")
4848

docs/t-sql/statements/set-deadlock-priority-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ SET DEADLOCK_PRIORITY { LOW | NORMAL | HIGH | <numeric-priority> | @deadlock_var
7272

7373
Which session is chosen as the deadlock victim depends on each session's deadlock priority:
7474

75-
- If both sessions have the same deadlock priority, the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] chooses the session that is less expensive to roll back as the deadlock victim. For example, if both sessions have set their deadlock priority to HIGH, the instance will choose as a victim the session it estimates is less costly to roll back.
75+
- If both sessions have the same deadlock priority, the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] chooses the session that is less expensive to roll back as the deadlock victim. For example, if both sessions have set their deadlock priority to HIGH, the instance will choose as a victim the session it estimates is less costly to roll back. The cost is determined by comparing the number of log bytes written to that point in each transaction. (You can see this value as "Log Used" in a deadlock graph).
7676

7777
- If the sessions have different deadlock priorities, the session with the lowest deadlock priority is chosen as the deadlock victim.
7878

0 commit comments

Comments
 (0)