checking return code from BCP

  • I have a bat file that does multiple BCP commands. I want to check the result of the first BCP command before executing the second. The DBA tells me ERRORLEVEL does not work with BCP. Is there a way I can check to see if the bcp command executed properly while running the commnad in a .BAT file?

    William H. Hoover

    Louisville, Ky

    sweeper_bill@yahoo.com


    William H. Hoover
    Louisville, Ky
    sweeper_bill@yahoo.com

  • Bill,

    Run each BCP command separately in a DTS package. Add a workflow between each of them. On Success, go to the next.

    Good luck

    John

Viewing 2 posts - 1 through 1 (of 1 total)

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