dbTalk Databases Forums  

Custom error handling within DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Custom error handling within DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Aardvark
 
Posts: n/a

Default Custom error handling within DTS - 02-02-2005 , 10:51 AM






Hello,

I am currently in the initial planning stages for a large project that
will be using DTS extensively. I would like to come up with a simple
and consistent error logging method that we can use. My first thought
is to use a simple table that stores errors (description, date & time,
where the error occurred, etc.).

In our stored procedures this is easy enough to support. I have an
insert stored procedure that saves the error information and it is easy
to call this within another stored procedure. In trying to use this
same approach in DTS I am having some trouble though. It seems a little
cumbersome since the developer would have to set global variables any
time that they hit an error. This means writing VB Script after every
task just to set the global variables so that they can be passed to a
child package or used to call a stored procedure.

I tried creating a single script that could handle this, but
GetExecutionErrorInfo isn't available from VB Script, so I'm not sure
how to generically handle it. Anything that I've found on the web or in
the newsgroups just mentions turning on DTS' intrinsic error handling.
This is nice, but I'd like to have all of our errors in one place for
consistency.

I anticipate similar problems with our process auditing, so any ideas
there would be welcome as well. For process auditing it would be as
simple as tracking start and end times for parts of the processes along
with return codes. Something that allows the continuation of a process
that errored out earlier would be great, but not necessary yet.

Can anyone point me to a document that explains a custom error handling
approach (and/or process auditing) in DTS?

Thanks,
-Tom.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.