Here i have written simple update cusror for experiment
and it is taking forever
DECLARE c1 CURSOR for
select scnt from support_date_exception
FOR UPDATE OF scnt
OPEN c1
FETCH NEXT FROM c1
WHILE @@FETCH_STATUS = 0
BEGIN
UPDATE support_date_exception set
scnt=null
WHERE CURRENT OF c1
END
CLOSE c1
DEALLOCATE c1
and it is taking forever
DECLARE c1 CURSOR for
select scnt from support_date_exception
FOR UPDATE OF scnt
OPEN c1
FETCH NEXT FROM c1
WHILE @@FETCH_STATUS = 0
BEGIN
UPDATE support_date_exception set
scnt=null
WHERE CURRENT OF c1
END
CLOSE c1
DEALLOCATE c1