I have a field that contains a log of changes. every time adds the date between square brackets.
I need to extract the last bit of the filed after the last ] to put it into a table.
I was trying this but it doesn't work...
select
SUBSTRING(BUG.CloseDescription,0,PATINDEX(']',bug.CloseDescription)) as myString
from Bug
Any ideas?
thanks
or to get the date