Skip to content
Advertisement

Execute Query Inside Column From CTE

I have a CTE table which returns dynamic SQL.

Here is my CTE query:

which returns:

enter image description here

I want to execute each row on the CTE table. How can I do that?

Advertisement

Answer

With just a couple of tweaks

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement