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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -