For example 'ABC-12345-6789-10' I want to return "10" as these are all the characters after the last "-" dash.
I have tried this but I only get a zero at the end:
SUBSTRING('ABC-12345-6789-10',len('ABC-12345-6789-10'),LEN(CHARINDEX('-', 'ABC-12345-6789-10')))