Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BCP: how to determine success or failure?

Status
Not open for further replies.

drewj840

Programmer
Jan 19, 2003
5
US
I am copy DTS packages from one server to another using BCP. This action is part of a larger script for change management control. I want to be able to determine whether the BCP was successful or encountered errors. One way I though of was to check the size of the ".err" file and if it is zero, then the BCP was successful. However, this seems clumsy. Certainly there must be a better, more elegant way to determine if a BCP was executed successfully.
 
The bcp command is running from the command line and not inside a stored procedure or Query Analyzer. I don't have access to these global variables when running from the command line.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top