How to use table variable in Stored Procedure as parameter

  • Hi,

    I want to pass table as parameter to stored procedure.

    How i can do this?please suggest.

     

  • From where?

    From another SP or from application?

    _____________
    Code for TallyGenerator

  • And, to add to Seqiy's good questions, what does the table parameter look like?   Is it merely 2 dimensional or is it N dimensional?

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

  • 1) Pass it as XML datatype

    2) Pass it as delimeter separated string

    3) Wait for SQL Server 2008 (Katmai)

     


    N 56°04'39.16"
    E 12°55'05.25"

Viewing 4 posts - 1 through 3 (of 3 total)

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