dbTalk Databases Forums  

How to Pass an Error Message Along with DTSTransformStatus?

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


Discuss How to Pass an Error Message Along with DTSTransformStatus? in the microsoft.public.sqlserver.dts forum.



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

Default How to Pass an Error Message Along with DTSTransformStatus? - 01-18-2005 , 09:21 AM






Hi.
I have a DTS package that uses an ActiveX script for transferring data from
a text file to a SQL 2000 table. I'm testing a DTSSource column for spaces
and exiting the routine if it's spaces.
I set MAIN = DTSTransformStat_ExceptionRow and Exit the function.

It worksd fine, I get the error row in the log but I don't get a meaningful
error message.
I tried to set MAIN = DTSTransformStat_ExceptionRow("My Error Message") but
I got an error in the log saying "Wrong number of arguments".

How do I pass along a meaningful error message when I set MAIN =
DTSTransformStat_ExceptionRow?

Here's my code:

Function Main()
If (Trim(DTSSource(6)) = "" Or Trim(DTSSource(7)) = "") Then
Main = DTSTransformStat_ExceptionRow
Exit Function
End If

DTSDestination("RecordType") = DTSSource(1)
Etc...

TIA.

Rita


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.