• I have the same message on SQl Server 2000

    Msg 170, Level 15, State 1, Procedure dba_QueryTimeDelta, Line 43

    Line 43: Incorrect syntax near 'MAX'.

    Msg 156, Level 15, State 1, Procedure dba_QueryTimeDelta, Line 97

    Incorrect syntax near the keyword 'END'.