Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Adam writes "I have a column containing filenames & path. E.g. \\ServerName\FolderName\User\xxxxx.1 . The extension can be .1 or .2 or .999999. I need to rename them to .DOC. Any suggestion?Thanks."
nr
SQLTeam MVY
12543 Posts
Posted - 2007-01-18 : 09:05:08
left(path, len(path) - charindex('.',reverse(path))) + '.doc'==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy.