I would like to know how to accomplish getting just the file name from the below
C:\Users\avs\Desktop\Testing\Text Files\TargetFolder\PN005337.RCS
the PN005337.RCS file name can vary in name and length. However the only definitive way of capturing it would be looking at the last '\' and then bringing back any thing after the very last '\'.
Anyway to do that in sql. This is a column in sql server, but the report owner just wants to see the name.
I am doing this in SSIS so either solution would be great in an expression or in SQL.
Thank you