SDU Tools: Check if Lock Pages in Memory is Enabled on SQL Server
In our free SDU Tools for developers and DBAs, we have a lot of procedures and functions for checking system and database configuration details. One that we were asked for a function for, was the ability to check if the LockPagesInMemory (LPIM) setting was enabled, so we added that.
The function is called IsLockPagesInMemoryEnabled.
It takes no parameters, and returns a bit to indicate if the value is enabled or not.
2021-02-05