• You sure there's not something else at work here? I just tested your code and it's working fine. There's no intervening code of any kind?

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning