DevPinoy.org
A Filipino Developers Community
            

bcp and errorlevel checks

we have a number of batch scripts at work which executes sql-related tasks for each of our project releases.  last time, i incorporated errorlevel checks so we know if there was a problem with the execution and in order to abort the rest of the operations if something else has gone wrong. 

i was surprised this weekend when one the bcp operation failed but it continued to execute the latter commands.  it turns out that the errorlevel variable is not populated correctly by bcp version 8 which comes with sql server 2000 (see kb here).  Luckily, it was already resolved with bcp version 9 which comes with sql server 2005.


Posted Dec 17 2007, 11:54 PM by jokiz
Filed under: ,

Comments

online met Boskamp %2526 Willems Advocaten wrote online met Boskamp %2526 Willems Advocaten
on 02-10-2008 10:20 AM

The proper way to track down this information is to use all means at your disposal.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

Enter the numbers above:

Copyright DevPinoy 2005-2008
Powered by Community Server (Commercial Edition), by Telligent Systems