SQL update text in the middle of nvarchar(max) field

Hello all,

I have a table with about 2.5 mil records that contain HTML string.  I need to update text in the middle of the feild, but I am unsure how to update just that peice of text.   Example...

<1500 random characters>\server1\<more random chars>

What I want to update is server1 to sql1 while retaining all the other random chars before, and after.  Would any one be able to give me a quick hand on that?

Thank you
dkraatzAsked:
Who is Participating?
 
tigin44Commented:
update yourtable
set coulumx = replace(columnx, 'server1', 'sql1')
0
 
dkraatzAuthor Commented:
Sadly I just found that in BOL right as you posted it LOL.  Thank you for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.