How can I extract the string after a specified character in SSMS?
For example "X1234" -> "1234". For this, the string will always begin with X.
What I have tried so far:
SUBSTRING(a.string,1,CHARINDEX('X',a.string))
which returns the 1st character after the X, though does not extend to all characters after X