Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
| Search | Today's Posts | Mark Forums Read
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 26th, 2004, 04:38 PM
Registered User
 
Join Date: Jul 2004
Location: Cary, NC, .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error Trapping Steps

Hi-

I have a DTS package that as part of the package executes a dos batch file for stopping a windows service. I want to be able to check the return code from that step of the packge and see what it says (1,0 etc), if it is 0 great my package can go on to the next step, if it is something else, like 1, I don't want the whole package to fail, but it does right now. How can I work with Error Trapping or some business logic to make this package work better for me?

  #2 (permalink)  
Old July 26th, 2004, 05:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can check the step status through code, using the SQL Server DTS library, however, this is more involved. However, if you use success or failure workflow steps, you can route an error through a specific "channel", so to speak.

Brian


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running failed steps carumuga SQL Server 2000 3 June 12th, 2008 08:49 AM
ASP Error Trapping and Reporting kevorkian Classic ASP Basics 3 June 2nd, 2007 02:08 PM
error trapping majones@omaha Classic ASP Basics 0 January 5th, 2006 02:02 PM
Trapping Application Events ERROR MagicTH Excel VBA 1 August 14th, 2005 01:23 PM
Need some error trapping... cpk Classic ASP Databases 4 January 26th, 2005 08:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.