Skip to content

Commit c6e766c

Browse files
committed
Merge branch 'main' into release-fabric-mirroring-pupr
2 parents 13c5674 + 1f0f428 commit c6e766c

8 files changed

Lines changed: 365 additions & 381 deletions

File tree

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
1-
---
2-
title: Configure the priority boost (server configuration option)
3-
description: Learn about the deprecated priority boost option. See how to use it to set the priority base for SQL Server in the Windows 2008 or Windows Server 2008 R2 scheduler.
4-
author: rwestMSFT
5-
ms.author: randolphwest
6-
ms.date: 01/23/2023
7-
ms.service: sql
8-
ms.subservice: configuration
9-
ms.topic: conceptual
10-
helpviewer_keywords:
11-
- "priority boost option"
12-
---
13-
# Configure the priority boost (server configuration option)
14-
15-
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
16-
17-
This article describes how to configure the **priority boost** configuration option in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] by using [!INCLUDE[tsql](../../includes/tsql-md.md)].
18-
19-
> [!IMPORTANT]
20-
> [!INCLUDE[ssNoteDepFutureAvoid](../../includes/ssnotedepfutureavoid-md.md)]
21-
22-
Use the **priority boost** option to specify whether [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] should run at a higher scheduling priority than other processes on the same computer. If you set this option to 1, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] runs at a priority base of 13 in the Windows scheduler. The default is 0, which is a priority base of 7.
23-
24-
## Limitations and restrictions
25-
26-
Raising the priority too high may drain resources from essential operating system and network functions, resulting in problems shutting down SQL Server or using other operating system tasks on the server. This setting does not make the SQL Server process run at the highest operating system priority.
27-
28-
You do not need to use **priority boost** for performance tuning. If you do use **priority boost**, it can interfere with smooth server functioning under certain conditions, and you should only use it under exceptional circumstances. For example, Microsoft Product Support Services might use **priority boost** when they investigate a performance issue.
29-
30-
> [!IMPORTANT]
31-
Don't use **priority boost** in a SQL Server failover cluster.
32-
33-
## Permissions
34-
35-
Execute permissions on `sp_configure` with no parameters or with only the first parameter are granted to all users by default. To execute `sp_configure` with both parameters to change a configuration option or to run the `RECONFIGURE` statement, a user must be granted the ALTER SETTINGS server-level permission. The ALTER SETTINGS permission is implicitly held by the **sysadmin** and **serveradmin** fixed server roles.
36-
37-
## Remarks
38-
39-
The server must be restarted before the setting can take effect.
40-
41-
## Use Transact-SQL
42-
43-
This example shows how to use [sp_configure](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md) to enable advanced options, and then set the value of the `priority boost` option to `1`.
44-
45-
```sql
46-
USE [master];
47-
GO
48-
EXEC sp_configure 'show advanced options', 1;
49-
GO
50-
RECONFIGURE;
51-
GO
52-
EXEC sp_configure 'priority boost', 1;
53-
GO
54-
RECONFIGURE;
55-
GO
56-
```
57-
58-
## See also
59-
60-
- [RECONFIGURE (Transact-SQL)](../../t-sql/language-elements/reconfigure-transact-sql.md)
61-
- [Server Configuration Options (SQL Server)](server-configuration-options-sql-server.md)
62-
- [sp_configure (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md)
1+
---
2+
title: Configure the priority boost (server configuration option)
3+
description: Learn about the deprecated priority boost option. See how to use it to set the priority base for SQL Server in the Windows 2008 or Windows Server 2008 R2 scheduler.
4+
author: rwestMSFT
5+
ms.author: randolphwest
6+
ms.date: 03/19/2024
7+
ms.service: sql
8+
ms.subservice: configuration
9+
ms.topic: conceptual
10+
helpviewer_keywords:
11+
- "priority boost option"
12+
---
13+
# Configure the priority boost (server configuration option)
14+
15+
[!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)]
16+
17+
This article describes how to configure the **priority boost** configuration option in [!INCLUDE [ssnoversion](../../includes/ssnoversion-md.md)] by using [!INCLUDE [tsql](../../includes/tsql-md.md)].
18+
19+
> [!IMPORTANT]
20+
> [!INCLUDE [ssNoteDepFutureAvoid](../../includes/ssnotedepfutureavoid-md.md)]
21+
22+
Use the **priority boost** option to specify whether [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] should run at a higher scheduling priority than other processes on the same computer. If you set this option to `1`, [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] runs at a priority base of `13` in the Windows scheduler. The default is `0`, which is a priority base of `7`.
23+
24+
## Limitations
25+
26+
Raising the priority too high might drain resources from essential operating system and network functions, resulting in problems shutting down [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] or using other operating system tasks on the server. This setting doesn't make the [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] process run at the highest operating system priority.
27+
28+
You don't need to use **priority boost** for performance tuning. If you do use **priority boost**, it can interfere with smooth server functioning under certain conditions, and you should only use it under exceptional circumstances. For example, Microsoft Product Support Services might use **priority boost** when they investigate a performance issue.
29+
30+
> [!IMPORTANT]
31+
> Don't use **priority boost** in a [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] failover cluster instance (FCI).
32+
33+
## Permissions
34+
35+
Execute permissions on `sp_configure` with no parameters or with only the first parameter are granted to all users by default. To execute `sp_configure` with both parameters to change a configuration option or to run the `RECONFIGURE` statement, a user must be granted the `ALTER SETTINGS` server-level permission. The `ALTER SETTINGS` permission is implicitly held by the **sysadmin** and **serveradmin** fixed server roles.
36+
37+
## Remarks
38+
39+
The server must be restarted before the setting can take effect.
40+
41+
## Use Transact-SQL
42+
43+
This example shows how to use [sp_configure](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md) to enable advanced options, and then set the value of the `priority boost` option to `1`.
44+
45+
```sql
46+
USE [master];
47+
GO
48+
EXEC sp_configure 'show advanced options', 1;
49+
GO
50+
RECONFIGURE;
51+
GO
52+
EXEC sp_configure 'priority boost', 1;
53+
GO
54+
RECONFIGURE;
55+
GO
56+
```
57+
58+
## Related content
59+
60+
- [RECONFIGURE (Transact-SQL)](../../t-sql/language-elements/reconfigure-transact-sql.md)
61+
- [Server configuration options (SQL Server)](server-configuration-options-sql-server.md)
62+
- [sp_configure (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-configure-transact-sql.md)

docs/includes/sscatviewperm-md.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
author: rwestMSFT
33
ms.author: randolphwest
4-
ms.date: 01/29/2024
4+
ms.date: 03/19/2024
55
ms.service: sql
66
ms.topic: include
77
---
8-
The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission.
8+
The visibility of the metadata in catalog views is limited to securables that a user either owns, or on which the user was granted some permission.
Lines changed: 63 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: "sys.syslanguages (Transact-SQL)"
3-
description: "sys.syslanguages (Transact-SQL)"
3+
description: sys.syslanguages contains one row for each language present in the instance of the SQL Server Database Engine.
44
author: rwestMSFT
55
ms.author: randolphwest
6-
ms.date: "03/15/2017"
6+
ms.date: 03/19/2024
77
ms.service: sql
88
ms.subservice: system-objects
99
ms.topic: "reference"
@@ -17,67 +17,68 @@ helpviewer_keywords:
1717
- "sys.syslanguages compatibility view"
1818
dev_langs:
1919
- "TSQL"
20-
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current||=fabric"
20+
monikerRange: ">=aps-pdw-2016 || =azuresqldb-current || =azure-sqldw-latest || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric"
2121
---
2222
# sys.syslanguages (Transact-SQL)
23+
2324
[!INCLUDE [sql-asdb-asdbmi-asa-pdw-fabricse-fabricdw](../../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw-fabricse-fabricdw.md)]
2425

25-
Contains one row for each language present in the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)].
26-
27-
|Column name|Data type|Description|
28-
|-----------------|---------------|-----------------|
29-
|langid|**smallint**|Unique language ID.|
30-
|dateformat|**nchar(3)**|Date order, for example, DMY.|
31-
|datefirst|**tinyint**|First day of the week: 1 for Monday, 2 for Tuesday, and so on through 7 for Sunday.|
32-
|upgrade|**int**|Reserved for system use.|
33-
|name|**sysname**|Official language name, for example, Français.|
34-
|alias|**sysname**|Alternative language name, for example, French.|
35-
|months|**nvarchar(372)**|Comma-separated list of full-length month names in order from January through December, with each name having up to 20 characters.|
36-
|shortmonths|**nvarchar(132)**|Comma-separated list of short-month names in order from January through December, with each name having up to 9 characters.|
37-
|days|**nvarchar(217)**|Comma-separated list of day names in order from Monday through Sunday, with each name having up to 30 characters.|
38-
|lcid|**int**|[!INCLUDE[msCoName](../../includes/msconame-md.md)] Windows locale ID for the language.|
39-
|msglangid|**smallint**|[!INCLUDE[ssDE](../../includes/ssde-md.md)] message group ID.|
40-
41-
The [!INCLUDE[ssDE](../../includes/ssde-md.md)] contains the following installed languages.
42-
43-
|Name in English|Windows LCID|[!INCLUDE[ssDE](../../includes/ssde-md.md)] message group ID|
44-
|---------------------|------------------|-----------------------------------------|
45-
|English|1033|1033|
46-
|German|1031|1031|
47-
|French|1036|1036|
48-
|Japanese|1041|1041|
49-
|Danish|1030|1030|
50-
|Spanish|3082|3082|
51-
|Italian|1040|1040|
52-
|Dutch|1043|1043|
53-
|Norwegian|2068|2068|
54-
|Portuguese|2070|2070|
55-
|Finnish|1035|1035|
56-
|Swedish|1053|1053|
57-
|Czech|1029|1029|
58-
|Hungarian|1038|1038|
59-
|Polish|1045|1045|
60-
|Romanian|1048|1048|
61-
|Croatian|1050|1050|
62-
|Slovak|1051|1051|
63-
|Slovene|1060|1060|
64-
|Greek|1032|1032|
65-
|Bulgarian|1026|1026|
66-
|Russian|1049|1049|
67-
|Turkish|1055|1055|
68-
|British English|2057|1033|
69-
|Estonian|1061|1061|
70-
|Latvian|1062|1062|
71-
|Lithuanian|1063|1063|
72-
|Portuguese (Brazil)|1046|1046|
73-
|Traditional Chinese|1028|1028|
74-
|Korean|1042|1042|
75-
|Simplified Chinese|2052|2052|
76-
|Arabic|1025|1025|
77-
|Thai|1054|1054|
78-
79-
## See Also
80-
[Compatibility Views (Transact-SQL)](~/relational-databases/system-compatibility-views/system-compatibility-views-transact-sql.md)
81-
[Mapping System Tables to System Views (Transact-SQL)](../../relational-databases/system-tables/mapping-system-tables-to-system-views-transact-sql.md)
82-
83-
26+
Contains one row for each language present in the instance of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)].
27+
28+
| Column name | Data type | Description |
29+
| --- | --- | --- |
30+
| `langid` | **smallint** | Unique language ID. |
31+
| `dateformat` | **nchar(3)** | Date order, for example, `DMY`. |
32+
| `datefirst` | **tinyint** | First day of the week: `1` for Monday, `2` for Tuesday, and so on, through `7` for Sunday. |
33+
| `upgrade` | **int** | Reserved for system use. |
34+
| `name` | **sysname** | Official language name, for example, `Français`. |
35+
| `alias` | **sysname** | Alternative language name, for example, `French`. |
36+
| `months` | **nvarchar(372)** | Comma-separated list of full-length month names in order from January through December, with each name having up to 20 characters. |
37+
| `shortmonths` | **nvarchar(132)** | Comma-separated list of short-month names in order from January through December, with each name having up to nine characters. |
38+
| `days` | **nvarchar(217)** | Comma-separated list of day names in order from Monday through Sunday, with each name having up to 30 characters. |
39+
| `lcid` | **int** | [!INCLUDE [msCoName](../../includes/msconame-md.md)] Windows language code ID (LCID) for the locale. |
40+
| `msglangid` | **smallint** | [!INCLUDE [ssDE](../../includes/ssde-md.md)] message group ID. |
41+
42+
The [!INCLUDE [ssDE](../../includes/ssde-md.md)] contains the following installed languages.
43+
44+
| Name in English | Windows LCID | [!INCLUDE [ssDE](../../includes/ssde-md.md)] message group ID |
45+
| --- | --- | --- |
46+
| English | 1033 | 1033 |
47+
| German | 1031 | 1031 |
48+
| French | 1036 | 1036 |
49+
| Japanese | 1041 | 1041 |
50+
| Danish | 1030 | 1030 |
51+
| Spanish | 3082 | 3082 |
52+
| Italian | 1040 | 1040 |
53+
| Dutch | 1043 | 1043 |
54+
| Norwegian | 2068 | 2068 |
55+
| Portuguese | 2070 | 2070 |
56+
| Finnish | 1035 | 1035 |
57+
| Swedish | 1053 | 1053 |
58+
| Czech | 1029 | 1029 |
59+
| Hungarian | 1038 | 1038 |
60+
| Polish | 1045 | 1045 |
61+
| Romanian | 1048 | 1048 |
62+
| Croatian | 1050 | 1050 |
63+
| Slovak | 1051 | 1051 |
64+
| Slovenian | 1060 | 1060 |
65+
| Greek | 1032 | 1032 |
66+
| Bulgarian | 1026 | 1026 |
67+
| Russian | 1049 | 1049 |
68+
| Turkish | 1055 | 1055 |
69+
| British English | 2057 | 1033 |
70+
| Estonian | 1061 | 1061 |
71+
| Latvian | 1062 | 1062 |
72+
| Lithuanian | 1063 | 1063 |
73+
| Brazilian | 1046 | 1046 |
74+
| Traditional Chinese | 1028 | 1028 |
75+
| Korean | 1042 | 1042 |
76+
| Simplified Chinese | 2052 | 2052 |
77+
| Arabic | 1025 | 1025 |
78+
| Thai | 1054 | 1054 |
79+
| Bokmål | 1044 | 1044 |
80+
81+
## Related content
82+
83+
- [System Compatibility Views (Transact-SQL)](system-compatibility-views-transact-sql.md)
84+
- [Mapping System Tables to System Views (Transact-SQL)](../system-tables/mapping-system-tables-to-system-views-transact-sql.md)
Lines changed: 50 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,68 @@
11
---
22
title: "View Foreign Key Properties"
3-
description: "You can view the foreign key attributes of a relationship with SQL Server Management Studio or T-SQL queries."
3+
description: View the foreign key attributes of a relationship with SQL Server Management Studio or T-SQL queries.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
6-
ms.date: "04/13/2022"
6+
ms.reviewer: randolphwest
7+
ms.date: 03/19/2024
78
ms.service: sql
89
ms.subservice: table-view-index
910
ms.topic: conceptual
1011
helpviewer_keywords:
1112
- "foreign keys [SQL Server], attributes"
1213
- "displaying foreign keys attributes"
1314
- "viewing foreign keys attributes"
14-
monikerRange: ">=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current"
15+
monikerRange: ">=aps-pdw-2016 || =azuresqldb-current || =azure-sqldw-latest || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current"
1516
---
1617
# View foreign key properties
18+
1719
[!INCLUDE [sqlserver2016-asdb-asdbmi-asa-pdw](../../includes/applies-to-version/sqlserver2016-asdb-asdbmi-asa-pdw.md)]
1820

19-
You can view the foreign key attributes of a relationship in [!INCLUDE[ssnoversion](../../includes/ssnoversion-md.md)] by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE[tsql](../../includes/tsql-md.md)].
20-
21-
### <a name="Permissions"></a> Permissions
22-
[!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md).
23-
24-
## <a name="SSMSProcedure"></a> Using SQL Server Management Studio
25-
26-
#### To view the foreign key attributes of a relationship in a specific table
27-
28-
1. Open the Table Designer for the table containing the foreign key you want to view, right-click in the Table Designer, and choose **Relationships** from the shortcut menu.
29-
30-
2. In the **Foreign Key Relationships** dialog box, select the relationship with properties you want to view.
31-
32-
If the foreign key columns are related to a primary key, the primary key columns are identified in **Table Designer** by a primary key symbol in the row selector.
33-
34-
<a name="TsqlExample"></a>
35-
## <a name="TsqlProcedure"></a> Using Transact-SQL
36-
37-
#### To view the foreign key attributes of a relationship in a specific table
38-
39-
1. In **Object Explorer**, connect to an instance of [!INCLUDE[ssDE](../../includes/ssde-md.md)].
40-
41-
2. On the Standard bar, select **New Query**.
42-
43-
3. Copy and paste the following example into the query window and select **Execute**. The example returns all foreign keys and their properties for the table `HumanResources.Employee` in the sample database.
44-
45-
```sql
46-
USE AdventureWorks2022;
47-
GO
48-
SELECT
49-
f.name AS foreign_key_name
50-
,OBJECT_NAME(f.parent_object_id) AS table_name
51-
,COL_NAME(fc.parent_object_id, fc.parent_column_id) AS constraint_column_name
52-
,OBJECT_NAME (f.referenced_object_id) AS referenced_object
53-
,COL_NAME(fc.referenced_object_id, fc.referenced_column_id) AS referenced_column_name
54-
,f.is_disabled, f.is_not_trusted
55-
,f.delete_referential_action_desc
56-
,f.update_referential_action_desc
57-
FROM sys.foreign_keys AS f
58-
INNER JOIN sys.foreign_key_columns AS fc
59-
ON f.object_id = fc.constraint_object_id
60-
WHERE f.parent_object_id = OBJECT_ID('HumanResources.Employee');
61-
```
62-
63-
For more information, see [sys.foreign_keys &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/sys-foreign-keys-transact-sql.md) and [sys.foreign_key_columns &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/sys-foreign-key-columns-transact-sql.md).
64-
65-
## Next steps
21+
You can view the foreign key attributes of a relationship in [!INCLUDE [ssnoversion](../../includes/ssnoversion-md.md)] by using [!INCLUDE [ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or [!INCLUDE [tsql](../../includes/tsql-md.md)].
22+
23+
### Permissions
24+
25+
[!INCLUDE [ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../security/metadata-visibility-configuration.md).
26+
27+
## <a id="SSMSProcedure"></a> Use SQL Server Management Studio
28+
29+
1. Open the Table Designer for the table containing the foreign key you want to view, right-click in the Table Designer, and choose **Relationships** from the shortcut menu.
30+
31+
1. In the **Foreign Key Relationships** dialog box, select the relationship with properties you want to view.
32+
33+
If the foreign key columns are related to a primary key, the primary key columns are identified in **Table Designer** by a primary key symbol in the row selector.
34+
35+
## <a id="TsqlExample"></a> Use Transact-SQL
36+
37+
1. In **Object Explorer**, connect to an instance of [!INCLUDE [ssDE](../../includes/ssde-md.md)].
38+
39+
1. On the Standard bar, select **New Query**.
40+
41+
1. Copy and paste the following example into the query window and select **Execute**. The example returns all foreign keys and their properties for the table `HumanResources.Employee` in the sample database.
42+
43+
```sql
44+
USE AdventureWorks2022;
45+
GO
46+
47+
SELECT f.name AS foreign_key_name,
48+
OBJECT_NAME(f.parent_object_id) AS table_name,
49+
COL_NAME(fc.parent_object_id, fc.parent_column_id) AS constraint_column_name,
50+
OBJECT_NAME(f.referenced_object_id) AS referenced_object,
51+
COL_NAME(fc.referenced_object_id, fc.referenced_column_id) AS referenced_column_name,
52+
f.is_disabled,
53+
f.is_not_trusted,
54+
f.delete_referential_action_desc,
55+
f.update_referential_action_desc
56+
FROM sys.foreign_keys AS f
57+
INNER JOIN sys.foreign_key_columns AS fc
58+
ON f.object_id = fc.constraint_object_id
59+
WHERE f.parent_object_id = OBJECT_ID('HumanResources.Employee');
60+
```
61+
62+
For more information, see [sys.foreign_keys](../system-catalog-views/sys-foreign-keys-transact-sql.md) and [sys.foreign_key_columns](../system-catalog-views/sys-foreign-key-columns-transact-sql.md).
63+
64+
## Related content
6665

6766
- [ALTER TABLE Statement](../../odbc/microsoft/alter-table-statement.md)
6867
- [Disable foreign key constraints for replication](disable-foreign-key-constraints-for-replication.md)
69-
- [Disable Foreign Key Constraints with INSERT and UPDATE Statements](disable-foreign-key-constraints-with-insert-and-update-statements.md)
68+
- [Disable foreign key constraints with INSERT and UPDATE statements](disable-foreign-key-constraints-with-insert-and-update-statements.md)

0 commit comments

Comments
 (0)