sql - How do I get a string right before a certain character in SSIS 2008? -
i've been seeing lot of answers online none of them give me need.
example:
12345_helloworld_328923_haha.txt
i need grab before second "_"
output:
helloworld
how do expression in ssis?
i figured out.
substring(@[user::filename],findstring(@[user::filename],"_",1) + 1,findstring(@[user::filename],"_",2) - findstring(@[user::filename],"_",1) - 1)
Comments
Post a Comment