Advertisement

07.11.2008 at 12:53AM PDT, ID: 23556432
[x]
Attachment Details

Find and Replace Functions

Asked by styleteks in MS SQL Server, SQL Server 2005

Tags: MS SQL

I have a column in my table that has invalid file names.  I need to rename the file names by replacing the last characters with a new value.  And, I must do this for every record in the table.

So, I have the following value in the field:
123456_SM.jpg

And, I want to replace it with the following value:

123456_F_SM.jpg

Every value follows this format.  Is there a simple way to accomplish this?

Thanks for your help!Start Free Trial
[+][-]07.11.2008 at 12:56AM PDT, ID: 21980655

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, SQL Server 2005
Tags: MS SQL
Sign Up Now!
Solution Provided By: mherchl
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.11.2008 at 01:24AM PDT, ID: 21980759

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.11.2008 at 11:53AM PDT, ID: 21984959

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628