O'Reilly logo

Microsoft® SQL Server 2012 Unleashed by Alex T. Silverstein, Chris Gallelli, Paul T. Bertucci, Ray Rankins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

min memory per query

Type: Advanced

Default value: 1024

The min memory per query option specifies the minimum amount of memory that will be allocated for the execution of a query. Normally, the SQL Server query processor attempts to determine the optimal amount of memory for a query. This option allows the sysadmin role to specify this value instead. Increasing this value usually improves queries that handle hash and sort operations on a large volume of data.

The following is an example of this option:

exec sp_configure 'min memory per query', 2048goRECONFIGUREgo

Looking back at Figure 60.5 showing the Memory page of the Server Properties dialog, you can see the min memory per query option set at 1024 (the default). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required