The Curse and Blessings of Dynamic SQL