<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 Replace TEXT with VARCHAR(MAX) &#8211; Stop using TEXT, NTEXT, IMAGE Data Types</title>
	<atom:link href="http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sat, 25 May 2013 01:31:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: jaseem</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-265606</link>
		<dc:creator><![CDATA[jaseem]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 09:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-265606</guid>
		<description><![CDATA[the above query didn&#039;t execute. How to write a query in which I can cast and match simultaneously?]]></description>
		<content:encoded><![CDATA[<p>the above query didn&#8217;t execute. How to write a query in which I can cast and match simultaneously?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaseem</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-265605</link>
		<dc:creator><![CDATA[jaseem]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 09:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-265605</guid>
		<description><![CDATA[select * from a TableName where (cast(text as varchar2(25))) like &#039;%&#039; +columnName+ &#039;%&#039;]]></description>
		<content:encoded><![CDATA[<p>select * from a TableName where (cast(text as varchar2(25))) like &#8216;%&#8217; +columnName+ &#8216;%&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-265271</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 20 Mar 2012 10:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-265271</guid>
		<description><![CDATA[It is only possible if you access that from the front end application]]></description>
		<content:encoded><![CDATA[<p>It is only possible if you access that from the front end application</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binoy Mathew</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-262278</link>
		<dc:creator><![CDATA[Binoy Mathew]]></dc:creator>
		<pubDate>Mon, 12 Mar 2012 21:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-262278</guid>
		<description><![CDATA[Hi,

I have a PDF file which is stored in a database table in a column of image datatype. The PDF contains text as well as images. I just want to retrieve the text from the PDF. I am not bothered about the image. Is it possible to do this?]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a PDF file which is stored in a database table in a column of image datatype. The PDF contains text as well as images. I just want to retrieve the text from the PDF. I am not bothered about the image. Is it possible to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Difference between CHAR, VARCHAR, NVARCHAR and VARCHAR(MAX) &#8211; Quiz &#8211; Puzzle &#8211; 15 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-238378</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Difference between CHAR, VARCHAR, NVARCHAR and VARCHAR(MAX) &#8211; Quiz &#8211; Puzzle &#8211; 15 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Mon, 16 Jan 2012 01:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-238378</guid>
		<description><![CDATA[[...] Server Interview Questions and Answers ISBN: 1466405643 Page#85-87 Replace TEXT with VARCHAR(MAX) – Stop using TEXT, NTEXT, IMAGE Data Types Constraint on VARCHAR(MAX) Field To Limit It Certain [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Server Interview Questions and Answers ISBN: 1466405643 Page#85-87 Replace TEXT with VARCHAR(MAX) – Stop using TEXT, NTEXT, IMAGE Data Types Constraint on VARCHAR(MAX) Field To Limit It Certain [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-201163</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 21 Nov 2011 10:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-201163</guid>
		<description><![CDATA[Make sure to read this post
http://beyondrelational.com/blogs/madhivanan/archive/2008/07/15/varchar-max-datatype-and-replicate-function.aspx]]></description>
		<content:encoded><![CDATA[<p>Make sure to read this post<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2008/07/15/varchar-max-datatype-and-replicate-function.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2008/07/15/varchar-max-datatype-and-replicate-function.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnson John</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-199296</link>
		<dc:creator><![CDATA[Johnson John]]></dc:creator>
		<pubDate>Sat, 19 Nov 2011 13:50:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-199296</guid>
		<description><![CDATA[Please anyone help me to solve below bug. I need to replace a character with a replacement text which has length more than 4000. Replace function works only if the replacement text is &lt;= 4000 characters. 

Kindy reply.

Select 
REPLACE(
&#039;Johns1&#039;
, &#039;1&#039;
, Convert(nvarchar(max) ,
		REPLICATE( &#039;a&#039; , 12000) ) -- It will work only till 4000
)

--Msg 8152, Level 16, State 10, Line 1
--String or binary data would be truncated.]]></description>
		<content:encoded><![CDATA[<p>Please anyone help me to solve below bug. I need to replace a character with a replacement text which has length more than 4000. Replace function works only if the replacement text is &lt;= 4000 characters. </p>
<p>Kindy reply.</p>
<p>Select<br />
REPLACE(<br />
&#039;Johns1&#039;<br />
, &#039;1&#039;<br />
, Convert(nvarchar(max) ,<br />
		REPLICATE( &#039;a&#039; , 12000) ) &#8212; It will work only till 4000<br />
)</p>
<p>&#8211;Msg 8152, Level 16, State 10, Line 1<br />
&#8211;String or binary data would be truncated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-117020</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 07 Feb 2011 10:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-117020</guid>
		<description><![CDATA[You need to use WITH MOVE option]]></description>
		<content:encoded><![CDATA[<p>You need to use WITH MOVE option</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prince</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-116837</link>
		<dc:creator><![CDATA[Prince]]></dc:creator>
		<pubDate>Sun, 06 Feb 2011 13:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-116837</guid>
		<description><![CDATA[How to Restore the database backup.bak file with different name in sql server 2005 without drop 
original database.]]></description>
		<content:encoded><![CDATA[<p>How to Restore the database backup.bak file with different name in sql server 2005 without drop<br />
original database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tracey</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-90411</link>
		<dc:creator><![CDATA[Tracey]]></dc:creator>
		<pubDate>Fri, 01 Oct 2010 01:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-90411</guid>
		<description><![CDATA[declare @mytext varchar(max)

I read a file that has 800 rows in it and string the values together

Row 1 &#039;1112&#039; 
Row 2 &#039;8711&#039;
Row 800 &#039;9817&#039;

I end up with &#039;1112;/&#039;8711;/9817&#039;

The problem is my string only holds up to Row 600 and I cannot get the entire rows to store in my @mytext.

The column in table is text 

Any ideas.]]></description>
		<content:encoded><![CDATA[<p>declare @mytext varchar(max)</p>
<p>I read a file that has 800 rows in it and string the values together</p>
<p>Row 1 &#8217;1112&#8242;<br />
Row 2 &#8217;8711&#8242;<br />
Row 800 &#8217;9817&#8242;</p>
<p>I end up with &#8217;1112;/&#8217;8711;/9817&#8242;</p>
<p>The problem is my string only holds up to Row 600 and I cannot get the entire rows to store in my @mytext.</p>
<p>The column in table is text </p>
<p>Any ideas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JLMiller</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-82887</link>
		<dc:creator><![CDATA[JLMiller]]></dc:creator>
		<pubDate>Tue, 03 Aug 2010 17:43:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-82887</guid>
		<description><![CDATA[Hi, I have a fields datatype that is a listed as nvarchar(max) and I want to push this data into a field with a datatype of image.  How can I do this without losing data from the nvarchar(max) datatype field?

If I try a straight insert I get the following error:

Operand type clash: nvarchar(max) is incompatible with image]]></description>
		<content:encoded><![CDATA[<p>Hi, I have a fields datatype that is a listed as nvarchar(max) and I want to push this data into a field with a datatype of image.  How can I do this without losing data from the nvarchar(max) datatype field?</p>
<p>If I try a straight insert I get the following error:</p>
<p>Operand type clash: nvarchar(max) is incompatible with image</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandan</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-80178</link>
		<dc:creator><![CDATA[Chandan]]></dc:creator>
		<pubDate>Wed, 14 Jul 2010 06:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-80178</guid>
		<description><![CDATA[Hi Pinal I am facing a problem with IN operator in SQL2005. I have a column Airports ( ntext type)
which has values like (&#039;Fra&#039;,&#039;lhr&#039;,&#039;ams&#039;). I am using below Query as inner query .” Airport IN( Select cast(Airports as varchar(max)) from TestUserDifinedRegion where UdrName= &#039;UDR4&#039; and  UID = &#039;1025&#039; )” but outer Query never gives result. If I run inner Query Separately and hard code returned result like this “Airport IN (&#039;Fra&#039;,&#039;lhr&#039;,&#039;ams&#039;)” outer Query gives perfect result. Can u suggest me what mistake I am doing here.
Thanks
Chandan]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal I am facing a problem with IN operator in SQL2005. I have a column Airports ( ntext type)<br />
which has values like (&#8216;Fra&#8217;,'lhr&#8217;,'ams&#8217;). I am using below Query as inner query .” Airport IN( Select cast(Airports as varchar(max)) from TestUserDifinedRegion where UdrName= &#8216;UDR4&#8242; and  UID = &#8217;1025&#8242; )” but outer Query never gives result. If I run inner Query Separately and hard code returned result like this “Airport IN (&#8216;Fra&#8217;,'lhr&#8217;,'ams&#8217;)” outer Query gives perfect result. Can u suggest me what mistake I am doing here.<br />
Thanks<br />
Chandan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivek</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-75087</link>
		<dc:creator><![CDATA[Vivek]]></dc:creator>
		<pubDate>Mon, 07 Jun 2010 16:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-75087</guid>
		<description><![CDATA[I have a need to replace all email ids within an XML in a text column. The emails are different in each row and I want to do something like

update Tablename set contents=replace(cast(contents as varchar(MAX)),&#039;%&#039;,&#039;myemail@company.com&#039;) 

* The &quot;%&quot; kind of represents all the email ids

Is there anyway to do an update like this?]]></description>
		<content:encoded><![CDATA[<p>I have a need to replace all email ids within an XML in a text column. The emails are different in each row and I want to do something like</p>
<p>update Tablename set contents=replace(cast(contents as varchar(MAX)),&#8217;%',&#8217;myemail@company.com&#8217;) </p>
<p>* The &#8220;%&#8221; kind of represents all the email ids</p>
<p>Is there anyway to do an update like this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko Parkkola</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-71779</link>
		<dc:creator><![CDATA[Marko Parkkola]]></dc:creator>
		<pubDate>Thu, 20 May 2010 06:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-71779</guid>
		<description><![CDATA[Hi,

You could try one thing before you change your column type. Create a new table for your XML data and add foreign key constraint pointing to the original table. Join this new table in your query instead of reading TEXT field from the original table.

If you get this working properly with this new table you have some possibilities to optimize it even further (well, you have some these options with a single table also). You could for instance move this new table to a hard drive other that where your original table is. This could speed up the reads.

But as with everything, testing and measurements (of the performance) are the magic words here.

Now which data type should you choose... If you don&#039;t need any actual XML functions, XPath, XML indexing or anything, I would go with VARCHAR(MAX).]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You could try one thing before you change your column type. Create a new table for your XML data and add foreign key constraint pointing to the original table. Join this new table in your query instead of reading TEXT field from the original table.</p>
<p>If you get this working properly with this new table you have some possibilities to optimize it even further (well, you have some these options with a single table also). You could for instance move this new table to a hard drive other that where your original table is. This could speed up the reads.</p>
<p>But as with everything, testing and measurements (of the performance) are the magic words here.</p>
<p>Now which data type should you choose&#8230; If you don&#8217;t need any actual XML functions, XPath, XML indexing or anything, I would go with VARCHAR(MAX).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ganesan</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-71682</link>
		<dc:creator><![CDATA[Ganesan]]></dc:creator>
		<pubDate>Wed, 19 May 2010 22:19:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-71682</guid>
		<description><![CDATA[Hello Pinal, 
  I am planning to replace a column with TEXT datatype to VARCHAR(max). Any reference of this column already has performance issues in our application. Will this conversion better the performance or will remain the same. From some blogs, I understand that if records have this column length less than 8000, SQLSERVER stores the data in side the row (based on option setting) and hence the performance will be better. Is it correct?
  Also we are storing only XML content in this column. If we change to XML type will the performance be better. Any other suggestions to improve the performance would be much helpful.

Regards,
Ganesan]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,<br />
  I am planning to replace a column with TEXT datatype to VARCHAR(max). Any reference of this column already has performance issues in our application. Will this conversion better the performance or will remain the same. From some blogs, I understand that if records have this column length less than 8000, SQLSERVER stores the data in side the row (based on option setting) and hence the performance will be better. Is it correct?<br />
  Also we are storing only XML content in this column. If we change to XML type will the performance be better. Any other suggestions to improve the performance would be much helpful.</p>
<p>Regards,<br />
Ganesan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-62385</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-62385</guid>
		<description><![CDATA[Your question is not ver clear
Can you give us more informations?]]></description>
		<content:encoded><![CDATA[<p>Your question is not ver clear<br />
Can you give us more informations?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-62384</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Mon, 08 Mar 2010 10:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-62384</guid>
		<description><![CDATA[What is the problem you are having?]]></description>
		<content:encoded><![CDATA[<p>What is the problem you are having?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pelicanPaul</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-60621</link>
		<dc:creator><![CDATA[pelicanPaul]]></dc:creator>
		<pubDate>Wed, 03 Feb 2010 17:39:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-60621</guid>
		<description><![CDATA[You guys are working way too hard...

update mytable set description =
replace(convert(varchar(max),description),&#039;oldstring&#039;,&#039;newstring&#039;)]]></description>
		<content:encoded><![CDATA[<p>You guys are working way too hard&#8230;</p>
<p>update mytable set description =<br />
replace(convert(varchar(max),description),&#8217;oldstring&#8217;,'newstring&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hennie de Nooijer</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-58711</link>
		<dc:creator><![CDATA[Hennie de Nooijer]]></dc:creator>
		<pubDate>Wed, 16 Dec 2009 11:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-58711</guid>
		<description><![CDATA[I&#039;ve a question about varchar(max). We are loading information in a datawarehouse and i&#039;m thinking of creating only varchar(max) fields because only the used space is stored + 2 bytes. Or am i missing something?]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve a question about varchar(max). We are loading information in a datawarehouse and i&#8217;m thinking of creating only varchar(max) fields because only the used space is stored + 2 bytes. Or am i missing something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harish</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-57458</link>
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Mon, 09 Nov 2009 13:59:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-57458</guid>
		<description><![CDATA[@Vinod: you can try doing something like a casting
ex: @Critique = CAST(comments as varchar(max))]]></description>
		<content:encoded><![CDATA[<p>@Vinod: you can try doing something like a casting<br />
ex: @Critique = CAST(comments as varchar(max))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashjh</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-57455</link>
		<dc:creator><![CDATA[ashjh]]></dc:creator>
		<pubDate>Mon, 09 Nov 2009 12:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-57455</guid>
		<description><![CDATA[Hi,

 I am using a table for pasted  resumes.

Will setting the data type of this particular column as varchar(max) help in pasting the maximum number of characters in the column. As of now iam restricting it to varchar(8000).

    Are there any disadvantages of this in SQL Server 2005/2008.

Thank you,
Ash]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p> I am using a table for pasted  resumes.</p>
<p>Will setting the data type of this particular column as varchar(max) help in pasting the maximum number of characters in the column. As of now iam restricting it to varchar(8000).</p>
<p>    Are there any disadvantages of this in SQL Server 2005/2008.</p>
<p>Thank you,<br />
Ash</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinod</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-57045</link>
		<dc:creator><![CDATA[Vinod]]></dc:creator>
		<pubDate>Mon, 26 Oct 2009 19:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-57045</guid>
		<description><![CDATA[hi pinal,

I&#039;m having a hard time trying to convert nvarchar(max) to a string in my VB .NET application. Would you happen to know how I could fix this?

Thanks,
Vinod]]></description>
		<content:encoded><![CDATA[<p>hi pinal,</p>
<p>I&#8217;m having a hard time trying to convert nvarchar(max) to a string in my VB .NET application. Would you happen to know how I could fix this?</p>
<p>Thanks,<br />
Vinod</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harish</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-57007</link>
		<dc:creator><![CDATA[Harish]]></dc:creator>
		<pubDate>Sun, 25 Oct 2009 14:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-57007</guid>
		<description><![CDATA[Hi pinal,

I have  a issue here relelated to this. I am trying to access a &quot;text&quot; type and inserting that value into another table viw a stored procedure. I&#039;ve tried to cast it, convert it, but nothing works. 

My code looks somethings like this:

Declare	@Critique varchar(max), @Feedback varchar(max)
...
...
...
SELECT @Critique = CAST(comments as varchar(max)), @Feedback = CAST(public_critique as varchar(max)) FROM  ASCO_vEXTERNAL_REVIEW_APPLICATIONS_LIST WHERE wf_task_assignment_id = @WfTaskAssignmentIDP1

-- comments and public_critique are defined as text in view (also tried with table) ASCO_vEXTERNAL_REVIEW_APPLICATIONS_LIST
...
...
...
insert into WF_TASK_ASSIGNMENT_REVIEW (wf_task_assignment_review_id, wf_task_assignment_id, grantee_project_id, comments, public_critique) values (@NewID1, @WfTaskAssignmentIDP2, @GranteeProjectID, @Critique, @Feedback)


Can you please help me with this as soon as possible. I would really appreciate this.

Thanks,
Harish]]></description>
		<content:encoded><![CDATA[<p>Hi pinal,</p>
<p>I have  a issue here relelated to this. I am trying to access a &#8220;text&#8221; type and inserting that value into another table viw a stored procedure. I&#8217;ve tried to cast it, convert it, but nothing works. </p>
<p>My code looks somethings like this:</p>
<p>Declare	@Critique varchar(max), @Feedback varchar(max)<br />
&#8230;<br />
&#8230;<br />
&#8230;<br />
SELECT @Critique = CAST(comments as varchar(max)), @Feedback = CAST(public_critique as varchar(max)) FROM  ASCO_vEXTERNAL_REVIEW_APPLICATIONS_LIST WHERE wf_task_assignment_id = @WfTaskAssignmentIDP1</p>
<p>&#8211; comments and public_critique are defined as text in view (also tried with table) ASCO_vEXTERNAL_REVIEW_APPLICATIONS_LIST<br />
&#8230;<br />
&#8230;<br />
&#8230;<br />
insert into WF_TASK_ASSIGNMENT_REVIEW (wf_task_assignment_review_id, wf_task_assignment_id, grantee_project_id, comments, public_critique) values (@NewID1, @WfTaskAssignmentIDP2, @GranteeProjectID, @Critique, @Feedback)</p>
<p>Can you please help me with this as soon as possible. I would really appreciate this.</p>
<p>Thanks,<br />
Harish</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit jain</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-40201</link>
		<dc:creator><![CDATA[Amit jain]]></dc:creator>
		<pubDate>Mon, 14 Jul 2008 09:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-40201</guid>
		<description><![CDATA[Hello Pinal,

Can you please tell the answer of a question. I am using sql 2005 i have more than 100 tables each table contain atleast one text/ntext column there is text. i want remove one specific text phrase. 

I want replace function of sql server. But I am not able to use that can i use these function with varchar(max)

Please also provide me a solution for replace specific text from all table and all columns in a database


Thanks in advance]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>Can you please tell the answer of a question. I am using sql 2005 i have more than 100 tables each table contain atleast one text/ntext column there is text. i want remove one specific text phrase. </p>
<p>I want replace function of sql server. But I am not able to use that can i use these function with varchar(max)</p>
<p>Please also provide me a solution for replace specific text from all table and all columns in a database</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: preethi</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-39217</link>
		<dc:creator><![CDATA[preethi]]></dc:creator>
		<pubDate>Fri, 13 Jun 2008 13:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-replace-text-with-varcharmax-stop-using-text-ntext-image-data-types/#comment-39217</guid>
		<description><![CDATA[this is maintainded in one table ~v1~+~v2~ how i can add this ,and in another table value have been set for v1,v2 how i can add this.]]></description>
		<content:encoded><![CDATA[<p>this is maintainded in one table ~v1~+~v2~ how i can add this ,and in another table value have been set for v1,v2 how i can add this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
