SELECT ... INTO with clustered index ?

  • Is there a syntax for SELECTing INTO a table where the new table has a clustered index?

    Instead of two separate commands like:

    SELECT Col1, Col2, Colx INTO NewTable

    CREATE CLUSTERED INDEX NewTableClus ON NewTable (Colx)

    If so, does this provide a performance enhancement over the two command syntax especially when NewTable is a #Temp table?



    Once you understand the BITs, all the pieces come together

  • 'fraid not.

    Cheers,

    - Mark


    Cheers,
    - Mark

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

You must be logged in to reply to this topic. Login to reply