your opinion on Bulk Import methods...

  • Hi

    I have an excel file (with an ever changing name) that will need to uploaded into a table.

    SSIS does not work on our servers so it is out of the question.

    I also don't want to use bcp or linked servers.

    Should I use:

    BULK INSERT

    or

    OPENROWSET

    or

    OPENDATASOURCE

    and does anyone know of a good comparision of these options?

  • BULK INSERT is absolutely the fastest... but I don't believe that it supports importing Excel Spreadsheets.

    Even if it did, if someone has the spreadsheet open, SQL Server will not be able to use it. Is there no way to export the spreadsheet to a Tab delimited file, first?

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

  • Unfortunately, the people that will be dropping these files are comfortable with excel and asking for a tab delimeted file (I know it's as simple as "save as") will be too much for them.

    Excel is the format requirement.

  • I am testing out OpenRowSet.

    One problem I am having is permissions as the the files are on a share.

    What permission do I need to give to the share? The account SQL runs under?

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

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