• sorry, maybe I'm missing something, but I get an error using the 2005 script:

    Msg 102, Level 15, State 1, Line 84

    Incorrect syntax near '?'.

    I can't see what line the error is coming from.

    thanks

    Tim White