all groups > sql server dts > january 2007 >
You're in the

sql server dts

group:

SSIS Dataflow Script component


SSIS Dataflow Script component pomarina
1/24/2007 7:28:59 AM
sql server dts: Hi,

In my control flow I am returning a result set from the sql db
containing some words. When I process incoming files I need to reject
rows if email column matches (not an exact match) any of these words.
I hoped I can create a script to loop each row through the recordset I
got in the control flow, but can not get it to work. Is it even doable
what I am trying to do? Thanks in advance for any help
Re: SSIS Dataflow Script component pomarina
1/24/2007 1:32:40 PM
HI Allan,
I am not removing bad rows from the flow, I mark them with the
exception code, because I apply other rules and I need to know all
reasons why the row is bad. What do you think is the best solution in
this case in your opinion?
Thanks

[quoted text, click to view]
Re: SSIS Dataflow Script component Allan Mitchell
1/24/2007 7:26:36 PM
It may be easiest and indeed quickest to dump your files into a staging
table in SQL Server. You can then use TSQL to get the rows you do not
want and remove them. I can think of a couple of ways to do this in the
pipeline but none of them pretty or particularly efficient.

--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




[quoted text, click to view]
Re: SSIS Dataflow Script component Allan Mitchell
1/24/2007 9:37:43 PM
For the sake of speed I would still stage. I would then use a SET based
statement to flag the appropriate rows.


--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




[quoted text, click to view]
Re: SSIS Dataflow Script component pomarina
1/26/2007 6:33:18 AM
Thank you guys for your responds. I created a script for my filtering.
I read filter words from db into variable (as comma delimited string)
and then parse it out and loop on it in the script.

[quoted text, click to view]
AddThis Social Bookmark Button