• The line:

    INSERT INTO @InputBuffer(EventType,Parameters,EventInfo) EXEC (@SQL)

    gave me an error:

    Server: Msg 197, Level 15, State 1, Line 65

    EXECUTE cannot be used as a source when inserting into a table variable.

    What happens?

    :crying:

    In Theory, theory and practice are the same...In practice, they are not.