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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -