• the devil is in the details, but if xp_cmdShell is available, you can use THAT via tsql to :

    1. get the list of files,

    2. create a cursor/loop for each of those files

    3.dynamically drop/create a linked server pointing to the [current] excel file.

    4. insert/update into your destination table from the lined server

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!