• Aside from posting the actual code could you post the results of:

    select @@version

    from you dev, test and prod SQL Servers ?

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."