## Optimizing database query time

To optimize database query time you can:

Use to defragment the appropriate database.

Use to Update Statistics on the appropriate database.

Run only one instance of SQL Server 2012 Standard or Enterprise Editions.

Note

See "Manual Tasks" on page 1 for instructions on how to perform the Defragment and Update Statistics operations.

#### Limiting SQL Server memory usage

By default, SQL Server 2012 Standard and Enterprise Editions are configured to dynamically adjust the amount of memory used based on demand.

Under some circumstances, it is possible for SQL Server to use up memory to a point where the overall system performance is affected. You can adjust the amount of memory reserved by using a configuration tool such as Microsoft SQL Server Management Studio.

##### Using SQL Server 2012 Management Studio to limit memory usage

In the Object Explorer pane, right-click the SQL Server instance that corresponds to the database (that is, the database icon at the root level of the tree-view) and select Properties to open the Server Properties dialog.

In the Select a page pane, select Memory.

Use the controls on the Memory page to adjust the memory allocation.

Click OK.