ssis - how to filter out some value

nononame2021 261 Reputation points
2021-12-13T12:49:58.977+00:00

my ssis is to import excel into sql server table, how can I filter out some value before importing into table using split conditions in data flow task

I try to add name = valid , value = ID !="LD" && ID!="AB"

after execution, it become only the id with LD and AB.

how to select the name in the split conditional arrow to filter out these ID?

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Yitzhak Khabinsky 26,586 Reputation points
    2021-12-13T14:13:13.657+00:00

    Hi @nononame2021 ,

    It is better to use the following expression in the SSIS Conditional Split Task.
    It makes easy to add more conditions, and thus more maintainable.

    FINDSTRING("_LD_AB_", "_" + yourColumnName + "_", 1) == 0  
    

  2. nononame2021 261 Reputation points
    2021-12-13T15:04:22.883+00:00

    how can I make different flow to import into different table by using the conditional in slipt conditional.


  3. ZoeHui-MSFT 41,491 Reputation points
    2021-12-14T05:51:06.587+00:00

    Hi @nononame2021 ,

    As YitzhakKhabinsky mentioned, you may use findstring to filter out some value.

    And please note that normally single case we focus on one issue.

    To import into different table by using the conditional in split conditional, here is a detailed tutorials you may take a reference below.

    ssis-conditional-split-transform-overview

    You have post several issues on Q&A, if the resolution is helpful, please mark it as answer so other user with similar problem could see this easier.

    This behavior could also encourage our experts to offer more help.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.