I spent an hour or so trying to get the right syntax to convert some of my code to dynamic SQL, figured it out, and just for giggles asked ChatGPT. What took me an hour took ChatGPT 20 seconds along with an explanation of dynamic SQL better