I asked chatgpt to give me a variable driven set of commands for granting permissions in SQL Server. It gave me what looked like it might work but didn't. I then asked it to provide the code in executable dynamic sql. That also didn't wor