Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: Updating 20M rows takes 5 hours

    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...

  • RE: Working with Temp Tables

    -- parent session

    IF 1 <> 0

    BEGIN

    -- child session 1

    exec ('Select 1 as col INTO #myTemp1 ')

    END

    ELSE

    BEGIN

    -- child session 2

    exec ('Select 2 as col INTO #myTemp1 ')

    END

    -- child session...

Viewing 2 posts - 1 through 2 (of 2 total)