Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to refine my data using substring-findstring

$
0
0

Hi Gurus,

I have a col that has data like this.

test-name[00H]
test2-something[00H] 

I only want to get

test-name

test2-something

Right now, I have SUBSTRING(col1,FINDSTRING(col1,"[",1) + 1,FINDSTRING(col1,"]",1) - 5)m but I am getting error saying

"[Derived Column [34374]] Error: An error occurred while evaluating the function."

Please help me with this.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>