Home Forums SQL Server 2012 SQL Server 2012 - T-SQL Help avoiding temp table with string of IDs passed into stored procedure RE: Help avoiding temp table with string of IDs passed into stored procedure

  • For passing large numbers of ID's, you might want to consider passing them as XML with some short tags so that you can pass more than 8K worth of ID's. Then just split the XML which can be quite quick when you don't need to first convert a CSV to XML.

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