• The query works for me in SqlServer 2000. What version do you have?

    Steve