I am importing a csv into SQL2000. Below is a small sample of the file...
436,"KID'S TRKY "," ",0,1,199
445,"KID'S "," "," ",0,5,299,
445,"KID'S "," "," ",0,5,299,
"PRICE CHANGE RECS"
129,"BREAD #3",4,4," "," "," "
133,"DESSERT #2",5,5," "," "," "
The problem is I need to ignore the line "Price Change Recs". I have started an activex script but it imports a null value instead of ignoring the line completely. Anyone have any ideas? Here is the script.
If left(DTSSource("Col001"
, 1) <> "P" then
If DTSSource("Col005"
= "MODIFY" THEN
DTSDestination("ITEM_NUMBER"
= DTSSource("Col001"
& "-2"
ELSE
DTSDestination("ITEM_NUMBER"
= DTSSource("Col001"
& "-1"
End If ' end add -1 or -2 if
Else
' *********Here is where I need the help
End If ' end if price change recs
Thanks for any help.
436,"KID'S TRKY "," ",0,1,199
445,"KID'S "," "," ",0,5,299,
445,"KID'S "," "," ",0,5,299,
"PRICE CHANGE RECS"
129,"BREAD #3",4,4," "," "," "
133,"DESSERT #2",5,5," "," "," "
The problem is I need to ignore the line "Price Change Recs". I have started an activex script but it imports a null value instead of ignoring the line completely. Anyone have any ideas? Here is the script.
If left(DTSSource("Col001"
If DTSSource("Col005"
DTSDestination("ITEM_NUMBER"
ELSE
DTSDestination("ITEM_NUMBER"
End If ' end add -1 or -2 if
Else
' *********Here is where I need the help
End If ' end if price change recs
Thanks for any help.