• Actually, I got this to work with no problem.

    ALTER PROC dbo.sp_GetMaxID (@MaxID INT OUTPUT)

    AS

    BEGIN

    SELECT @MaxID = max(ID) + 1 FROM tblFileWatchMaxID;

    END

    Use the same test code from my post above.