Here is another popular lab from Hands-On-Lab library: Optimizing SQL Server Stored Procedures.
Whenever an application is performing slowly because of database, then we need to optimize the stored procedures in that database. This lab is divided into three exercise explaining various techniques that are used to optimize the stored procedure such as Dynamic String Execution, Session setting and statement level recompilation.
Exercise 1: Optimizing the stored procedure by using Dynamic String Execution (DSE)
Exercise 2: Session settings that affect the stored procedure performance
Exercise 3: Statement level recompilation
SQLMaestros Hands-On-Labs enables the practical way of learning. Each lab document consists of multiple exercises and each exercise consists of multiple tasks. Apart from step-by-step instructions, the HOL document contains images, explanations, observations, notes, tips & tricks to ensure a great learning experience. With each lab, you can practice a specific concept step-by-step. With our HOL documents, you will get hands-on with hundreds of topics in SQL Server & Microsoft Data Platform. Learn More.