dbTalk Databases Forums  

DTSTransformStat_SkipInsert not skipping

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


Discuss DTSTransformStat_SkipInsert not skipping in the microsoft.public.sqlserver.dts forum.



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

Default DTSTransformStat_SkipInsert not skipping - 07-19-2004 , 02:55 PM






I am having trouble skipping rows when processing a text file.

I want to skip all the rows there col001 doesn't equal "001".
I've tried using both DTSTransformStat_SkipRow, and
DTSTransformStat_SkipInsert. And both insert null values into my
destination table instead of skipping the insert entirely.

Any suggestions as to what I should be doing differently?

Thanks,
Wes

Function Main()
if not DTSSource("Col001") = "001" then
Main = DTSTransformStat_SkipRow
else
'Column Mappings here
end if

Main = DTSTransformStat_OK

End Function


Reply With Quote
  #2  
Old   
Wes
 
Posts: n/a

Default Re: DTSTransformStat_SkipInsert not skipping - 07-20-2004 , 08:58 AM






Sorry about the tipple post. I'm using Google Groups Beta, and the
submit button doesn't give any feed back so I hit it a couple of extra
times.

I thought I should clarify the previous post. The code is in a
Transform Data Task that is moving data from a fixed with file to a
table. I'm using SQL Server 2000 sp3.


Wes wrote:
Quote:
I am having trouble skipping rows when processing a text file.

I want to skip all the rows there col001 doesn't equal "001".
I've tried using both DTSTransformStat_SkipRow, and
DTSTransformStat_SkipInsert. And both insert null values into my
destination table instead of skipping the insert entirely.

Any suggestions as to what I should be doing differently?

Thanks,
Wes

Function Main()
if not DTSSource("Col001") = "001" then
Main = DTSTransformStat_SkipRow
else
'Column Mappings here
end if

Main = DTSTransformStat_OK

End Function


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.