• OK, so the last 3 characters of line 175 have been truncated somehow.

    This should be replaced with:

    JOIN sys.columns c ON c.object_id = @ObjectId

    Does anyone know if it is possible to edit the scripts on SQL Server Central?