Follow

SQL Server Fine Tuning

Here are some basic tips for keeping your SQL Server running efficiently. For e-automate database "locks," these need to be traced down. We suggest installing a trial of Redgate.

If you are having performance issues also check these two settings in eAuto;
In Tools/Options/Misc Check the box to Disable auto populate on lists. Do tell your team in advance as they will not know to hit the "Go button".

Performance_1.png

Choose how often the dispatch screen refreshes;
Performance_2.png

***********************
SQL tuning usually involves changing some basic server settings in SQL Server Management Studio which follow best practices. Please see the screenshot below. The properties are opened by right clicking on the server instance name and going to Properties.

  1. Setting the min/max memory (for example, a server with 16GB , a good setting is 8GB min and 12-13GB max, that leaves 3-4GB for the OS). Setting a min prevents other software or VMWare from stealing good SQL Server cache, and setting a Max prevents bumping heads with the OS.
  2. The OPTIMIZE FOR AD HOC WORKLOADS should be set to FALSE. For SQL Servers with a high workload and not enough memory (8GB or less) I recommend setting this to TRUE (makes efficient use of memory since SQL only caches queries it sees 2 or more times).
  3. Setting the COST THRESHOLD FOR PARALLELISM from the default 5 to 25. This makes SQL Server less aggressive with parallelism. Really helps with locking and CPU wait times. A best practice is to set this to a 25-50 range, start with 25 and if you still have locking issues move toward 50.

 

Server Properties

Sql_Tuning_Screen_Shot.png

 

It is important to make sure there is a maintenance plan in place that rebuilds indexes and statistics at least once a week. This is simple since SQL Server has the wizard for the maintenance plans.

Here is a blog posting by a top SQL Server consulting company that mentions the settings recommended above:

http://www.brentozar.com/archive/2013/09/five-sql-server-settings-to-change/

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk