dbTalk Databases Forums  

Question about DTS error logging

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


Discuss Question about DTS error logging in the microsoft.public.sqlserver.dts forum.



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

Default Question about DTS error logging - 09-07-2004 , 08:53 AM






Hello!

Anyone know how to access the error descriptions via VB script (not full
VB, I am using the DTS gui to design & execute)?

I am logging the insert or transform errors in SqlServer, but cannot
figure out how to access the specific error message (the one that comes up in
the text log file) like "..insert of x column failed because of NULL .. ".

The closest was an Error Code from the DTSTransformPhaseInfo object, but I have
no idea what error description this correlates to or even if it is the same
error. I am sure this can be accessed from *somewhere*, since after all, it is
being written to the exception file.

Any help will be much appreciated! I've spent hours searching, and have come
up with nothing.

Reply With Quote
  #2  
Old   
Davide
 
Posts: n/a

Default Re: Question about DTS error logging - 09-08-2004 , 06:31 AM






jjo_chicago (AT) yahoo (DOT) com (Joe) wrote in message news:<13861d6d.0409070553.7de045a9 (AT) posting (DOT) google.com>...
Quote:
Hello!

Anyone know how to access the error descriptions via VB script (not full
VB, I am using the DTS gui to design & execute)?

I am logging the insert or transform errors in SqlServer, but cannot
figure out how to access the specific error message (the one that comes up in
the text log file) like "..insert of x column failed because of NULL .. ".

The closest was an Error Code from the DTSTransformPhaseInfo object, but I have
no idea what error description this correlates to or even if it is the same
error. I am sure this can be accessed from *somewhere*, since after all, it is
being written to the exception file.

Any help will be much appreciated! I've spent hours searching, and have come
up with nothing.


This could help you...

http://msdn.microsoft.com/library/de...ethai_98v8.asp


Reply With Quote
  #3  
Old   
Joe
 
Posts: n/a

Default Re: Question about DTS error logging - 09-09-2004 , 09:18 AM



Quote:
This could help you...

http://msdn.microsoft.com/library/de...ethai_98v8.asp

That does not help. The GetExecutionErrorInfo Method cannot be
invoked from VB Script. Quoting:

"GetExecutionErrorInfo uses ByRef parameters to pass back the
information
such as error description etc. These are type variables, long and
string
etc. ActiveX Script only has the variant type. For ByRef to work the
types must match exactly. Using CStr and similar only suppresses the
error by ensuring the data passed in is type correctly, but does not
change the variant to a true string. You will need to use a strongly
type language. You could write a DLL in VB that could be called from
ActiveX Script o even write a custom taks to do the entire error
capture
job. Using a custom task gives reuse too, without copy and paste of
code
between packages."



Source: http://www.google.com/groups?hl=en&l...r%3D%26hl%3Den


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.