OK so I’m a bit rusty on parts of T-SQL such as string manipulation
I got a string in a field called [path] the value of the field could look like
'foo\Branches\Bar\Baz\Helpers\FileNotFoundResult.cs'
I need to update the field (for all records) so that the result will be
'Branches\Bar\Baz\Helpers\FileNotFoundResult.cs'
that is strip of anything before the first ‘\’ and the ‘\’
so I’d appricate if any one could help me fill in the “blanks”
UPDATE SourceFiles
SET Path = <blanks>
Something like
(Assuming your Path column isn’t a varchar(max))
If your path column might not contain a backslash at all, you might want: