How do I
Take:
RJI#\\\\Cjserver\TrialWorks\CaseFiles\10000269\Pleadings\RJI - 10005781.doc
Find Constant expression '\\Cjserver\' and take everything to the right of the expression so the correct pointer would be:
\\\\Cjserver\TrialWorks\CaseFiles\10000269\Pleadings\RJI - 10005781.doc
I know some kind of combinaton of RIGHT
and CHARINDEX
should do it.
I'm just using 1000 for some arbitrarily large value. You should probably size this more appropriately to your data.
You want to use Substring, starting one after the index of your target, and take the length of the entire string less the charindex of your target
In this case I want everything after the y