• When I ran the script I got the following errors.

    Msg 170, Level 15, State 1, Line 5

    Line 5: Incorrect syntax near 'OUTPUT'.

    Msg 170, Level 15, State 1, Line 7

    Line 7: Incorrect syntax near 'x'.

    Can anyone point out the reason?

    Thanks