Search and Replace with Table rows

M

ms newsgrp

I need to search and replace a word in a field (description) in the table
(TableInventory) in my database? I need to replace 'Michael S.' with 'Jacob
S.' within the text string.

How can I do this with SQL and TSQL?

I need to search and replace in all the rows in the table.

Thanks in advance.
 
A

Aaron [SQL Server MVP]

UPDATE table SET description = REPLACE(description, 'Michael S.', 'Jacob
S.')

?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top