The procedure loads the affected jobs (maximum: 1000) from the Job Queue and puts them in a table variable. Then all changes happen only in the table variable, and in the end the changes will be copied back to "JobQueue". The problem is that ParamIN (which contains all the parameters of the jobs) will be copied into the table variable. ParamIN is a nvarchar(max) field, which could potentially contain a lot of data (maximum: 2 GB). But this is completely unnecessary, because the ParamIN will never be changed by a status update of the jobs.