CS #2 Using COVERING INDEX for improving performance

click Problem Statement

here Stored procedure follow site CS2_COVERING_INDEX is running slow for some input parameters combinations and running fine for other input parameters.

CREATE PROC CS2_COVERING_INDEX @start_prod_id INT, @end_prod_id INT AS BEGIN SELECT TOP 10 TransactionID,ProductID,TransactionDate FROM bigTransactionHistory WHERE ProductID BETWEEN @start_prod_id AND @end_prod_id ORDER BY ActualCost DESC; END; GO

Read more CS #2 Using COVERING INDEX for improving performance

SQL Server Fragmentation: What it is, what are it’s types (Part 1)

In this post, we’ll talk about what fragmentation is, what are its different types in SQL Server, how it impacts performance (and when it doesn’t).

This is the first post in the multi part series. In the following posts in this series, we’ll see what causes fragmentation part-2, how to check for it(using DMVs) part-3, how to address it(remove it) part-4, and how to avoid it(control it) part-5.
Read more SQL Server Fragmentation: What it is, what are it’s types (Part 1)