You are here:Home » tsql » Enable the Lock Pages in Memory Option in SQL Server

Enable the Lock Pages in Memory Option in SQL Server


Recently when i was working with SQL Server clustered environment and tried to enable option of awe enabled from configuration,
exec sp_Configure 'show advanced options',1
go
exec sp_Configure 'awe enabled',1
go
reconfigure 
go
It raised error for the enable the lock pages in memory.

Msg 5845, Level 16, State 1, Line 1
Address Windowing Extensions (AWE) requires the 'lock pages in memory' privilege which is not currently present in the access token of the process

Following are the steps to configure this option. After i was able to enable the option of awe enabled in configuration. To change this policy you must have system administrator access.

1.On the Start menu, click Run. In the Open box, type gpedit.msc.
The Group Policy dialog box opens.

2.On the Group Policy console, expand Computer Configuration, and then expand Windows Settings.

3.Expand Security Settings, and then expand Local Policies.

4.Select the User Rights Assignment folder.
The policies will be displayed in the details pane.

5.In the pane, double-click Lock pages in memory.

6.In the Local Security Policy Setting dialog box, click Add.

7.In the Select Users or Groups dialog box, add an account with privileges to run sqlservr.exe.