Hi, How good are Dynamic SQL queries for SQL Server's better peformance ? I m just asking because I got a request from one of our developers to tune a stored proc that he develped. It has 800 lines code and all dynamic sql. Its always harder for me to read through the dynamic sql code and understand. What about Database engine? Does it handle better?
The stored proc has all the variables and sp_execsql everywhere.
Please advise.
Thank you