Is there not a way to do this without the overhead of two queries? I'm generally of the opinion that, if you were doing a set based operation then you should do either the whole set or none. your code ...