• Jim Mackenzie - Wednesday, February 7, 2018 5:06 AM

    I don't believe you can bulk insert multiple files at once.
    Probably the easiest way to do it is with a simple SSIS package.

    Here's an example: https://www.mssqltips.com/sqlservertip/2874/loop-through-flat-files-in-sql-server-integration-services/

    It can also be done using the OS level command of "START" either through PowerShell or a nice call to the OS through xp_CmdShell.

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