Home Forums SQL Server 2005 Development Pulling Filename from Windows directory into table RE: Pulling Filename from Windows directory into table

  • erouse (9/18/2009)


    Attached file shows results 250 to 260. Note that after row 255 all the file details are the same yet the row number changes.

    That looks like a bug in the sp_OA* canned sprocs. I guess I've never gotten there because I always move processed files to a different directory. Thanks for posting the text file. I'll see if I can recreate the problem tonight and maybe even come up with an alternate.

    With that in mind, can you use xp_CmdShell on your server(s)? There's a very fast method we can use there but it does require a dip into the xp_CmdShell world.

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