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