created the below function to make it handy to get the file name from a string contains full file path.
select dbo.fn_lastpart ('c:\program files\mssql\mypath\myfile.txt','\') |
myfile.txt
create function dbo.fn_lastpart (@vString varchar(500) , @vSep varchar(9)) |
No comments:
Post a Comment