2

I am wondering if there is a function in SSIS Conditional Split, that would tell me if the string in my datacell has a substring "XYZ" or not. The condition would look like this:

CheckIfValueContainsSubstring("XYZ")

Unfortunately I can't find such function. Is there any way of achieving the goal of separating the record which have the substring from the records which don't have it?

An important note: the substring can be anywhere (so the typical substring function doesn't work for me)

Simon
  • 2,643
  • 3
  • 40
  • 61

1 Answers1

7

The correct expression for this in SSIS is FINDSTRING.

FINDSTRING( «character_expression», «string», «occurrence» )

MSDNArticle

Similar SO Question

Community
  • 1
  • 1
Eric Hauenstein
  • 2,557
  • 6
  • 31
  • 41