John Mitchell-245523 - Friday, October 20, 2017 2:10 AM
Duran, please heed John's warning here - it's a serious topic. You don't want to hear about the company you work for on the news.
At a minimum, start here: https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-executesql-transact-sql