Create temp table using store prodecure

  • can any body help us

    how to create a temp table using store producer and insert value from three table in that temp table

    Thanks

  • Just create the Temp Table using a CREATE TABLE statement (Temp Table names begin with the # sign) and then use normal inserts to populate it.

    Temp Tables have a "scope" to them. You might want to read up on them. Please see the following URL which actually has an example of how to create Temp Tables in a proc. Open the following URL and search for the word "Temporary" on the page.

    http://technet.microsoft.com/en-us/library/ms174979.aspx

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

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

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