I have a need to return everything to the right of an = sign in a string.
I been trying to use this but keep getting and error.
The field that hold the date is type = text.
My string looks like
And I like to get everything right of the = sign.
The problem is thta the portion left of the equal sign can vary in lenght depnding on customer.
Thanks for any help
I been trying to use this but keep getting and error.
Code:
SELECT
RIGHT(I.MESSAGETRACKEDDATA, CHARINDEX('=', REVERSE(I.MESSAGETRACKEDDATA),-1))
FROM
INBOUNDX12MESSAGELOG I
WHERE
CONVERT (VARCHAR(30),I.RECEIVETIME,101) = CONVERT (VARCHAR(30),GETDATE(),101)
The field that hold the date is type = text.
My string looks like
Code:
Header-W05-Depositor Order Number=0822042930
And I like to get everything right of the = sign.
Code:
0822042930
The problem is thta the portion left of the equal sign can vary in lenght depnding on customer.
Thanks for any help