In Data Transformation Services (DTS), you can use Microsoft® ActiveX® script return codes to:
DTS provides a number of return code constants. Depending on where you use the ActiveX script, these return codes have different effects on the package or rows:
Note Use the return code constants rather than the decimal or hexadecimal values of the transformation return code in the script.
Some situations require multiple return codes. For example, if you want to transform a row multiple times but do not want to insert it into the destination multiple times, you can use DTSTransformStat_SkipFetch to transform the row again. Or, you can use DTSTransformStat_SkipInsert to prevent it from being put into the destination. However, no return code can do both. In that situation, you can use an OR operator to combine actions. For example, Main = DTSTransformStat_SkipFetch OR DTSTransformStat_SkipInsert causes both actions to occur. DTSTransformStat_SkipFetch prevents another row from coming into the transformation, and DTSTransformStat_SkipInsert keeps the row from being inserted into the destination.