I've got a poor performing query and not sure the best approach to fixing it. Here's the statement:
[code language="sql"]
UPDATE @t
SET ToLocationID = it.LocationID
FROM dbo.Invent
[code language="sql"]
UPDATE @t
SET ToLocationID = it.LocationID
FROM dbo.Invent