Best way to send and receive a set of records from sqlserver2005 to java

  • can u please suggest me whts the Best way to send and receive a set of records from sqlserver2005 to java......... i am all confused at wther to choose CSV or XML or any other format available in SQLserver 2005?.. Seeking advise over this

  • mail4sha (9/3/2010)


    can u please suggest me whts the Best way to send and receive a set of records from sqlserver2005 to java......... i am all confused at wther to choose CSV or XML or any other format available in SQLserver 2005?.. Seeking advise over this

    Neither... IIRC, Java can use SQL Result Sets directly and sending rows to SQL Server from Java shouldn't be done (IMHO). I had a client last year that tried to send a quarter million rows from Java to SQL Server for each major transaction... it was really ugly and slow. I talked the client into creating the rows in SQL Server instead. It was a whole lot faster and much kinder to the pipe.

    --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)
    Intro to Tally Tables and Functions

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

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