• You are welcome. Dynamic SQL can be a pain to write, I should know as I have written my share of it.