SQL Server table partitioning is a great feature that can be used to split large tables into multiple smaller tables, transparently. It allows you to store your data in many filegroups and keep the database files in different disk drives, with the ability to move the data in and out the partitioned tables easily. A common example for tables partitioning is archiving old data to slow disk drives and use the fast ones to store the frequently accessed data. Table partitioning improves query performance by excluding the partitions that are not needed in the result set. But table partitioning is available only in the Enterprise SQL Server Edition, which is not easy to upgrade to for most of small and medium companies due to its expensive license cost.
Read more »Query analysis
What’s new in SQL Server 2014 Cardinality Estimator?
November 14, 2016The Cardinality Estimator is a SQL Server Query Processor component that is responsible for predicting the number of rows that the query will return. This estimation of the number of rows in addition to the SQL Server statistics will be used by the SQL Server Query Optimizer to create the optimal and the most accurate execution plan for your query that has the lowest processing cost to execute.
Read more »SQL Server 2016 Parameter Sniffing
October 19, 2016SQL Server tries always to generate the most optimized execution plan for each stored procedure the first time that the stored procedure is executed. The SQL Server Engine looks at the stored procedure passed parameter values when compiling the stored procedure, the first execution, in order to create the optimal plan including the parameters and keep that plan for future use in the plan cache. This parameter analysis process is called the Parameter Sniffing.
Read more »How to compare query execution plans in SQL Server 2016
September 15, 2016SQL Server 2016 provides great enhancement capability features for troubleshooting purposes. Some of the important features are:
Read more »Troubleshoot SQL query performance using SQL Server 2016 Live Execution Statistics
August 19, 2016SQL Server Management Studio a graphical interactive that allows you to interact with the databases hosted on your servers. SSMS provides you with the ability to write, edit, execute, analyze and monitor your SQL queries. It also helps database administrators answer important questions about the SQL query performance, such as why a query is slow or why an index is not used. The answer to these questions can be found simply by tracking the Query Execution Plan.
Read more »Force query execution plan using SQL Server 2016 Query store
July 29, 2016SQL Server Query Store is a new feature introduced in SQL Server 2016 that is used to automatically and asynchronously capture query execution history, statistics and plans, with minimal impact to overall SQL Server Performance. The Query Store feature makes performance problem troubleshooting simple; you can view the query execution plans changes and compare its performance to decide which execution plan the SQL Server Query Optimizer should use for that query.
Read more »Query optimizer changes in SQL Server 2016 explained
June 17, 2016Description
SQL Server 2016 includes a variety of query optimizer enhancements. Some of these have existed since the first previews while others were added later. This is an opportunity to discuss, test out, and validate the behavior and benefits of these changes!
Read more »Searching the SQL Server query plan cache
February 8, 2016Whenever a query is executed in SQL Server, its execution plan, as well as some useful execution data are placed into the plan cache for future use. This information is a treasure trove of metrics that can allow some very useful insight into your server’s performance and resource consumption. Much of this information would be difficult or impossible to acquire otherwise.
Understanding how to access and use the metadata about query execution will provide us the tools we need to answer questions about our server and gain fascinating performance data. I’ve found myself spending more and more time writing, tweaking, and using queries against the plan cache lately and look forward to sharing these adventures with you!
Read more »The SQL Server Query Store in Action
November 26, 2015Introduction
The Query Store is a new feature in SQL Server 2016 that will greatly improve the process of performance tuning! The biggest limit of the query plan cache and the dynamic management views that relates to it is that it is very temporary. Queries are only accessible for as long as they are in cache, and as a result there is no way to travel back in time to determine what happened at 9am yesterday, or why performance worsened over a week-long period.
Read more »Query Store – the next generation tool for every DBA
November 13, 2015Along with the release of SQL server 2016 CTP 3 now comes the preview of a brand new feature for on premise databases – the Query Store. This feature enables performance monitoring and troubleshooting through the log of executed queries.
This blogpost will cover the following aspects of the Query Store feature:
- Introduction
- How to activate it
- Configuration options
- What information is found in the Query Store
- How to use the feature
- What’s in it for me
Behold the new live query stats in SQL Server 2016
September 11, 2015With the release of SQL Server 2016 also comes a great new feature to get a live view of the current execution plan for an active query.
This blogpost will cover the aspects of this new feature including:
- Introduction
- How to activate
- How to use and read the output
- Downsides – if any
Poor SQL query design – a SQL query performance killer – the basics
May 23, 2014Read more »
Inaccurate SQL Server statistics – a SQL query performance killer – updating SQL Server statistics
April 28, 2014Inaccurate SQL Server statistics – a SQL query performance killer – the basics
April 22, 2014Poor database indexing – a SQL query performance killer – recommendations
April 14, 2014Frequent query recompilations – a SQL query performance killer – detection
April 11, 2014Frequent query recompilations – a SQL query performance killer – introduction
April 9, 2014SQL query performance killers – understanding poor database indexing
March 31, 2014SQL Server query execution plans – Examples with the WHERE clause
March 21, 2014SQL Server query execution plans – Examples with the SELECT statement
March 19, 2014SQL Server query execution plans – Understanding and reading the plans
March 17, 2014In the previous parts of this series, we explained what SQL Server query execution plans were, why they should be used, and presented various methods to show them. In this part, we will explain the symbols used, how to read the plans, and how to use these plans in performance analysis and troubleshooting
Read more »SQL Server query execution plans – Viewing the plans
March 15, 2014In the SQL Server query execution plans – Basics, we described the query execution plans in SQL Server and why they are important for performance analysis. In this article, we will focus on the methods for opening the plans, both actual and estimated ones
Read more »