Configure the priority boost server configuration option

Applies to: SQL Server (all supported versions)

This article describes how to configure the priority boost configuration option in SQL Server by using Transact-SQL.

Important

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

Use the priority boost option to specify whether SQL Server should run at a higher scheduling priority than other processes on the same Windows Server 2008 or Windows Server 2008 R2 computer. If you set this option to 1, SQL Server runs at a priority base of 13 in the Windows Server 2008 or Windows Server 2008 R2 scheduler. The default is 0, which is a priority base of 7.

Limitations and restrictions

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.

Permissions

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.

Remarks

The server must be restarted before the setting can take effect.

Use Transact-SQL

This example shows how to use sp_configure to enable advanced options, and then set the value of the priority boost option to 1.

USE [master];
GO
EXEC sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'priority boost', 1;
GO
RECONFIGURE;
GO

See also