This is the best I could find over the web on differences between EXEC and sp_executesql. And the best explanation for sp_executesql stored procedure with optional parameters. Thank you very much!