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
Who is Participating?
update yourtable
set coulumx = replace(columnx, 'server1', 'sql1')
dkraatzAuthor Commented:
Sadly I just found that in BOL right as you posted it LOL.  Thank you for your help.
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.