anita
October 16th, 2001, 11:52 PM
I created a DTS package in SQL Server 2000 and saved it as a VB file (.bas). It runs fine in VB (a table is copied from one database to another).
There is no error handling code in the package. I am wondering whether I should add error handling. I saw an example in MSDN and tried to implement it in my package. I used OnError GoTo DTSPackageErr and coded my error handler. I set the FailOnError property to true. I changed the database name to some non-existent name and ran my code. It ran fine, the database table was copied and no error was generated.
Does anyone have an example of error handling in a DTS package. Thanks!
There is no error handling code in the package. I am wondering whether I should add error handling. I saw an example in MSDN and tried to implement it in my package. I used OnError GoTo DTSPackageErr and coded my error handler. I set the FailOnError property to true. I changed the database name to some non-existent name and ran my code. It ran fine, the database table was copied and no error was generated.
Does anyone have an example of error handling in a DTS package. Thanks!