Bulk Insert vs. BCP Utility

  • What is the difference between Bulk Insert and BCP.

    Which will be most effective in importing a bulk of data from flat file into sql server database?

    Do both exist in SQl Server Management studio express?

    Any help will be appreciated.

  • smatu (12/22/2016)


    What is the difference between Bulk Insert and BCP.

    Which will be most effective in importing a bulk of data from flat file into sql server database?

    Do both exist in SQl Server Management studio express?

    Any help will be appreciated.

    These sound like interview questions. You should lookup "BULK INSERT" and "BCP" on Yabingooglehoo and learn something new. 😉 Another lookup with the warning that the internet can still be a well paved onramp to a dirt road is "Bulk Insert vs BCP".

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

  • Bulk Insert can only insert and BCP can import and export.

    Bulk Insert runs inside SQL Server and BCP runs outside

    BCP Utility is more flexible than bulk insert - not just import and export, but you can shape the data that is moving

  • johnwalker10 (12/25/2016)


    Bulk Insert can only insert and BCP can import and export.

    Bulk Insert runs inside SQL Server and BCP runs outside

    BCP Utility is more flexible than bulk insert - not just import and export, but you can shape the data that is moving

    I have to ask why you think that you can't "shape the data" that is moving with BULK INSERT. BULK INSERT can use the same BCP format files that BCP can. If it's not that, what feature are you talking about?

    --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 4 posts - 1 through 3 (of 3 total)

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