Michael Gerholdt (8/31/2012)
Explain plan and resource consumption reports on the Oracle side actually slightly favor the non-dynamic SQL version, although the difference between the two is negligible.That's not serious benchmarking, just running each example a couple of times.
Good enough, though, for what I was after.
Excellent! Thank you for checking on the Oracle side. I couldn't remember which way it worked and I really appreciate the feedback.
Shifting gears, this is a pretty good indication that an index (if not already present) on the Oracle side would help, as well.
--Jeff Moden
Change is inevitable... Change for the better is not.