Can I use case condition in SSIS

sql test 60 Reputation points
2023-06-30T00:06:54.16+00:00

I can use case when in tsql, is it possible to use case condition in SSIS?

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

Accepted answer
  1. ZoeHui-MSFT 41,491 Reputation points
    2023-06-30T01:29:58.76+00:00

    Hi @sql test,

    Do you mean like this?

    Field == "TrueCondition1" ? “True” : ( Field == "TrueCondition2" ? “True” : ( Field == "TrueCondition3 " ? “True” : ( Field == "TrueCondition4" ? “True” : “False"  ) ) )
    
    
    

    A same thread you may take a reference to witing-a-case-statement-in-ssis.

    If I misunderstand your issue, you may provide some sample data and your expected result for us to do more test.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2023-06-30T05:25:22.3533333+00:00

    I can use case when in tsql, is it possible to use case condition in SSIS?

    Sure you can.

    But where do you want to; you didn't provided and deatlied information about where and how?

    1 person found this answer helpful.
    0 comments No comments

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.