If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

A shovel is a good tool for making a hole in the ground;
but only when the "correct" end of the shovel comes into contact with the Earth.

As a poor analogy, you are using the wrong end of the shovel!

There is never a good reason to use dynamic SQL for doing a SELECT.

Unless this is just a homework assignment, you need to seriously
reconsider exactly what problem you are trying to solve and
how to solve it in as simple a method as possible.

You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Good judgement comes from experience. Experience comes from bad judgement.