OK, I was looking at potentially reducing this (as more of an exercise than a need mind you) and it seems that Im getting this warning on what appears to be a better performing query and not on the query that requires more memory to execute? Is this weird or am I just over thinking?
Anyone want to educate me here (sorry for the large images)?
1st query and hover over:
UPDATE c SET c.scust_phone = cc.scontract_holder_hphone
FROM #Claims c
INNER JOIN SCS.scs_auto_sra.scs_contracts cc ON c.icontract_id = cc.icontract_id ;
second query and hover over:
UPDATE c SET c.scust_phone = cc.scontract_holder_hphone
FROM #Claims c
INNER JOIN
(
SELECT icontract_id, scontract_holder_hphone
FROM SCS.scs_auto_sra.scs_contracts cc
WHERE EXISTS (SELECT icontract_id FROM #Claims x WHERE x.icontract_id = cc.icontract_id )
) cc ON c.icontract_id = cc.icontract_id ;