<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>TSQL Tips – Modifying text in rows</title><link>http://blogs.technet.com/b/sqlman/archive/2010/01/05/tsql-tips-modifying-text-in-rows.aspx</link><description>I have been doing some loading of random text in tables, but wanted to make changes to some of the text in rows, instead of running a full update operation, I discovered that you can also use TSQL functions REPLACE or STUFF to change text. Below are examples</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: TSQL Tips – Modifying text in rows</title><link>http://blogs.technet.com/b/sqlman/archive/2010/01/05/tsql-tips-modifying-text-in-rows.aspx#3372605</link><pubDate>Thu, 02 Dec 2010 11:25:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3372605</guid><dc:creator>andrea</dc:creator><description>&lt;p&gt;hi spawar,&lt;/p&gt;
&lt;p&gt;is better&lt;/p&gt;
&lt;p&gt;UPDATE Dbo.Table_1 &lt;/p&gt;
&lt;p&gt;SET c2 = REPLACE(c2,&amp;#39;It&amp;#39;,&amp;#39;This&amp;#39;) &lt;/p&gt;
&lt;p&gt;WHERE c1 = 1&lt;/p&gt;
&lt;p&gt;subquery is not required for this&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3372605" width="1" height="1"&gt;</description></item></channel></rss>