sql server 2008 - SSIS: How to skip rows during import? -


in 2000 dtstransformstat_ok. there equivalent of in bids 2008?

you may find better in ssis. in data flow task, can use conditional split component. in conditional split, can create condition(s) , pass rows different outputs based on condition. can ignore, or discard, rows don't meet conditions.

if must use script component in data flow, can @ asynchronous inputs/outputs. default script component synchronous, means each row enters script component, 1 row exits. when set script component asynchronous, script code responsible controlling rows , columns exit script. so, can use conditions in script determine rows skipped.

for asynchronous script component, create new script component transformation. edit component , select inputs , outputs tab. select output 0 branch , alter synchronousinputid property none. expand treeview under output 0 branch , add list of columns define output row. then, start writing script.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -