Category Archives for "Performance Tuning"

Oct 15

Using Common Table Expressions to Improve Query Performance

By Jeffry Schwartz | Advice , Intermediate , Performance Tuning , SQL Development , SQL Server

-by Jeffry Schwartz Queries with multiple join clauses create particularly difficult issues when they perform poorly. Join ordering is extremely important because if a join creates a huge interim result set at the beginning of the query execution, SQL Server must continue to handle this result set until it can be trimmed down with filtering […]

Continue reading
Jun 03

Changes to System Views in SQL 2014

By Lori Brown | Helpful Scripts , Miscellaneous , Performance Tuning , SQL Server , Tip of the Month

There are two new system views and two system views that have new columns added in SQL 2014. Most notable is sys.databases since this is widely used.   sys.xml_indexes – Has 3 new columns: xml_index_type, xml_index_type_description, and path_id. https://msdn.microsoft.com/en-us/library/ms176003.aspx sys.databases – Has 3 new columns: is_auto_create_stats_incremental_on, is_query_store_on, and resource_pool_id. https://msdn.microsoft.com/en-us/library/ms178534.aspx sys.column_store_row_groups – New view.  Provides clustered […]

Continue reading
Feb 16

Top PerfMon Performance Counters for Determining Causes of Slow Response Times

By Jeffry Schwartz | Performance Tuning , SQL Server , Windows

Introduction Have you ever been placed in the position of being forced to address user complaints about how slow the system is performing without really knowing exactly where to begin looking? Some analysts begin with Task Manager or viewing the Windows event log. Others who are working with SQL Server search the ErrorLog for problems […]

Continue reading
Sep 07

September 2010 Tip of the Month

By SQLRx Admin | Performance Tuning , SQL Administration , SQL Maintenance , SQL Server , Tip of the Month

Performance Monitor: Monitor the performance counters SQLServer:Buffer Manager (Page reads/sec) and SQLServer:Buffer Manager (Page writes/sec) to detect poor performance. These counters measure physical IOs and not logical IOs. Heavy activity can indicate lack of database memory, a poor table implementation or can show that applications are not accessing a database correctly. Monitoring these counters will […]

Continue reading
Jun 07

June 2010 Tip of the Month

By SQLRx Admin | Performance Tuning , SQL Administration , SQL Server , Tip of the Month

SQL Server Administration: SQL Server keeps track of indexes that it thinks it needs in order to optimize queries. But there are several “missing index” dynamic management views that give valuable information. Find missing indexes with this query. Always test the suggested indexes, as they do not always help, and are only suggestions. SELECT mig.index_group_handle, […]

Continue reading
>