the below queries return about 80K records:
this select
only takes about 2 seconds to come back:
select fs.fsID
from datFS fs
join datAE t2
on fs.fsID= t2.fsID
join @AllCompletedNotYetDeleted t1
on fs.fsID=t1.fsID
where DateSent < DATEADD(m, -6, GETDATE())
while his update
(with the exact same joins) is taking forever... i have to stop it every time, so it is yet to finish...
update fs set fs.testrun = getdate()
from datFS fs
join datAE t2
on fs.fsID= t2.fsID
join @AllCompletedNotYetDeleted t1
on fs.fsID=t1.fsID
where DateSent < DATEADD(m, -6, GETDATE())
what did i do wrong?