Jeff - thank you for your help, your solution works a treat and is dynamic as required. It is slightly annoying that these extra lines of code and dynamic SQL is required....
I had a similar issue with a brand new HP proliant server. We ended up rebuilding the server, this time ensuring the latest 64 bit HP Proliant Support Pack was...