Hi guys,
I'm using SQL 2000, and wrote a vb script to import data from a fixed width text file.
The first record with an M in column 8 imports ok, but the only other records that import are the ones were there are more than two M records in a row, and it imports the second one but not the first one.
Like this
record one 'M' is imported
record two 'P' not imported which is correct
record three 'M' not imported (not good)
record four 'M' is imported
I hope I explain that correctly.
Any ideas?
thanks jc
I'm using SQL 2000, and wrote a vb script to import data from a fixed width text file.
Code:
if DTSSource("Col008") = "M" then
DTSDestination("On Flyer") = DTSSource("Col020")
DTSDestination("GST") = DTSSource("Col019")
...
Main = DTSTransformStat_OK
else
Main = DTSTransformStat_SkipRow
End If
The first record with an M in column 8 imports ok, but the only other records that import are the ones were there are more than two M records in a row, and it imports the second one but not the first one.
Like this
record one 'M' is imported
record two 'P' not imported which is correct
record three 'M' not imported (not good)
record four 'M' is imported
I hope I explain that correctly.
Any ideas?
thanks jc