Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

SQL Server update help

$
0
0
I have a column in a table that stores the full pathname for files, ie. C:\folder1\folder2\folder3\myfile.htm
What I want to do is to update all these pathnames to just be the filename only, ie. myfile.htm
The pathnames could be different levels of subfolders before the filename. So what I really need is keep everything after the last "\" in the stored path. Is there a way to do this in an update query? Thanks.

Viewing all articles
Browse latest Browse all 13329

Trending Articles