When did the last statistics update occur?
Statistics are the critical piece of information that SQL Server maintains for a table or index. The query optimization process depends on the statistics information to prepare an execution plan…
Read more »Benefits of including a non-key column in a non-clustered index
SQL Server supports to include non-key column as part of the non-clustered index. Having an index with the included column improves the query performance in several scenarios. This blog covers…
Read more »How to find the physical location of locked records in SQL Server
SQL Server by default locks the table or page or rows when it executes the transact statement. There are different types of locks such as exclusive, shared, schema modification lock…
Read more »Using constraint improves query performance
We know that the constraints are used to enforce the data integrity. A CHECK constraint is used to limit the value being entered into a column, similarly, unique constraint is…
Read more »Compile time of SQL statement
Query recompile and stored procedure recompile is not a good sign for performance for certain situations. The SQL statement by default cached for reuse, if the same query is requested…
Read more »SELECT * Vs. SELECT COLUMNS – SQL Server Optimization Techniques
Don’t use * in SELECT query, instead use only required column This is one of the tips to optimize SELECT query. However, does this really give better performance in SQL…
Read more »