![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a package that exports records from a linked server into a table on the current server. I would like to add a piece of code to skip a row if that key is already in the table. I attempted this but got a type mismatch error on 'DTSSource'. Here's the code snippet I attempted: if (DTSSource("Emp_PK") = DTSDestination("EmpEvt_EmpFK") and DTSSource("Evt_PK") = DTSDestination("EmpEvt_EvtFK")) then Main = DTSTransformStat_SkipRow end if If I can't accomplish this, I thought perhaps I could add code that would skip any rows that cause an error, but I'm not sure of the wisdom in this. Nor, am I sure about the syntax for activex script. I've double checked and my field names are typed correctly. I've not attempted this before. Any tips or suggestions would be greatly appreciated. Thanks TJ |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Ok. I understand what you are saying and I understand your explanation, just not how to execute it. I apologize. I've not attempted this before, so I'll do a bit of reading online if I can find anything for datapump tasks. If you know any good sources, please let me know. Thanks |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |