Not absolutely sure if this is the same issue, but from the initial post, we have had the same issue (on a standalone SQL2000 RTM install). A job exists with...
Paul's CASE use to build the dynamic SQL string is correct; but he's also right that people will be against Dynamic SQL! It's less efficient, generally, because of the execution...