I have text like this:
San Demetrio Corone (CS)
Villanova Tulo (NU)
I need to get the text between parentheses, I did this
SELECT SUBSTRING(a.place, CHARINDEX('(', a.place) + 1, CHARINDEX(')', a.place, CHARINDEX('(', a.place)+ 1) - CHARINDEX(')', a.place) - 1)
FROM tab1 a
but I'm getting error about lenght parameter, what's wrong in that?
