Viewing 2 posts - 1 through 2 (of 2 total)
Says that you update 5% row each time in big table A, you still have to avoid table scan.
To avoid table scan Table A, you can create index for table...
May 25, 2010 at 7:34 am
#1172055
-- parent session
IF 1 <> 0
BEGIN
-- child session 1
exec ('Select 1 as col INTO #myTemp1 ')
END
ELSE
-- child session 2
exec ('Select 2 as col INTO #myTemp1 ')
-- child session...
May 25, 2010 at 7:18 am
#1172042