• Didn't work for me. The following error when attempting to run this on 9.0.3159 in a clustered environment.

    Msg 156, Level 15, State 1, Line 14

    Incorrect syntax near the keyword 'CASE'.