• Yes, it's not parsing and getting below errors:

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 4

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 25

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 39

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 43

    Incorrect syntax near '?'.

    Msg 319, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 54

    Incorrect syntax near the keyword 'with'. If this statement is a common table expression or an xmlnamespaces clause, the previous statement must be terminated with a semicolon.

    Msg 137, Level 15, State 2, Procedure SP_GetBlockedInfo, Line 58

    Must declare the scalar variable "@spid".

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 60

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 62

    Incorrect syntax near '?'.

    Msg 137, Level 15, State 2, Procedure SP_GetBlockedInfo, Line 63

    Must declare the scalar variable "@spid".

    Msg 137, Level 15, State 2, Procedure SP_GetBlockedInfo, Line 65

    Must declare the scalar variable "@str".

    Msg 137, Level 15, State 2, Procedure SP_GetBlockedInfo, Line 66

    Must declare the scalar variable "@blocked".

    Msg 137, Level 15, State 2, Procedure SP_GetBlockedInfo, Line 68

    Must declare the scalar variable "@str".

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 70

    Incorrect syntax near '?'.

    Msg 156, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 72

    Incorrect syntax near the keyword 'as'.

    Msg 156, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 74

    Incorrect syntax near the keyword 'as'.

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 83

    Incorrect syntax near '?'.

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 84

    Incorrect syntax near '?'.

    Msg 137, Level 15, State 2, Procedure SP_GetBlockedInfo, Line 85

    Must declare the scalar variable "@spid".

    Msg 102, Level 15, State 1, Procedure SP_GetBlockedInfo, Line 91

    Incorrect syntax near '?'.

    Thanks