Don't have Telegram yet? Try it now!
https://www.sqlserverscience.com/t-sql/using-dynamic-sql-stored-procedure/
Using Dynamic SQL inside a Stored Procedure