<?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/"
		>
<channel>
	<title>Comments on: The text, ntext, and image data types are invalid in this subquery or aggregate expression</title>
	<atom:link href="http://www.cosmocentral.com/2009/06/the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression-the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cosmocentral.com/2009/06/the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression-the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression/</link>
	<description></description>
	<lastBuildDate>Tue, 03 May 2011 02:34:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Marcelene</title>
		<link>http://www.cosmocentral.com/2009/06/the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression-the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression/comment-page-1/#comment-6832</link>
		<dc:creator>Marcelene</dc:creator>
		<pubDate>Tue, 21 Sep 2010 19:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.cosmocentral.com/?p=530#comment-6832</guid>
		<description>Why do they need to be converted?  Are we talking about a version of SQL Server?  I&#039;m confused as to why they need to be converted.

Thanks,</description>
		<content:encoded><![CDATA[<p>Why do they need to be converted?  Are we talking about a version of SQL Server?  I&#8217;m confused as to why they need to be converted.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manik</title>
		<link>http://www.cosmocentral.com/2009/06/the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression-the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression/comment-page-1/#comment-6800</link>
		<dc:creator>manik</dc:creator>
		<pubDate>Thu, 20 May 2010 18:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cosmocentral.com/?p=530#comment-6800</guid>
		<description>@charan
Here is the quote from MS:
Automatic data type conversion is not supported for the text and image data types. You can explicitly convert text data to character data, and image data to binary or varbinary, but the maximum length is 8000. 

Also your error message says the problem.

You can try to save the old value on a local variable, then use it to make the update.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>@charan<br />
Here is the quote from MS:<br />
Automatic data type conversion is not supported for the text and image data types. You can explicitly convert text data to character data, and image data to binary or varbinary, but the maximum length is 8000. </p>
<p>Also your error message says the problem.</p>
<p>You can try to save the old value on a local variable, then use it to make the update.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charan</title>
		<link>http://www.cosmocentral.com/2009/06/the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression-the-text-ntext-and-image-data-types-are-invalid-in-this-subquery-or-aggregate-expression/comment-page-1/#comment-6799</link>
		<dc:creator>charan</dc:creator>
		<pubDate>Sun, 16 May 2010 07:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.cosmocentral.com/?p=530#comment-6799</guid>
		<description>create procedure createnewleft1copy(@BranchId nvarchar(50))
as
update tblImages set imgleft1old=(select   Cast(imgleft1 as image) from tblImages ) where BranchId=@BranchId



GO
 iam using sql server 2000

it is giving error


Server: Msg 279, Level 16, State 3, Procedure createnewleft1copy, Line 3
The text, ntext, and image data types are invalid in this subquery or aggregate expression.


can you corect where iam going wrong</description>
		<content:encoded><![CDATA[<p>create procedure createnewleft1copy(@BranchId nvarchar(50))<br />
as<br />
update tblImages set imgleft1old=(select   Cast(imgleft1 as image) from tblImages ) where BranchId=@BranchId</p>
<p>GO<br />
 iam using sql server 2000</p>
<p>it is giving error</p>
<p>Server: Msg 279, Level 16, State 3, Procedure createnewleft1copy, Line 3<br />
The text, ntext, and image data types are invalid in this subquery or aggregate expression.</p>
<p>can you corect where iam going wrong</p>
]]></content:encoded>
	</item>
</channel>
</rss>

