<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	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>Integration Points &#187; t-sql</title>
	<atom:link href="http://dmgorman.wordpress.com/tag/t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://dmgorman.wordpress.com</link>
	<description>Extending Corporate Data ...</description>
	<lastBuildDate>Wed, 16 Dec 2009 16:27:47 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='dmgorman.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/09ff9c9336e6ecd7cc49045a62d1aab3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Integration Points &#187; t-sql</title>
		<link>http://dmgorman.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dmgorman.wordpress.com/osd.xml" title="Integration Points" />
		<item>
		<title>#11 Union with SQL memo (text) field query error</title>
		<link>http://dmgorman.wordpress.com/2008/06/11/11-union-with-sql-memo-text-field-query-error/</link>
		<comments>http://dmgorman.wordpress.com/2008/06/11/11-union-with-sql-memo-text-field-query-error/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 16:45:11 +0000</pubDate>
		<dc:creator>dmgorman</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[t-sql]]></category>

		<guid isPermaLink="false">http://dmgorman.wordpress.com/?p=29</guid>
		<description><![CDATA[If you create a Stored Procedure or View which does a Union where one part of the union has a text field &#8211; referred to having a Deltek data type of &#8220;memo&#8221; [ Configuration &#124; User Defined Tabs (Fields tab) ]  which is labeled as &#8220;text&#8221; in SQL.   You may get the following error message: &#8216;The text [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmgorman.wordpress.com&blog=2497805&post=29&subd=dmgorman&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you create a Stored Procedure or View which does a Union where one part of the union has a text field &#8211; referred to having a Deltek data type of <strong>&#8220;memo&#8221;</strong> [ Configuration | User Defined Tabs (Fields tab) ]  which is labeled as &#8220;text&#8221; in SQL.   <em>You may get the following error message</em>:<strong> &#8216;The text data type cannot be selected as DISTINCT because it is not comparable&#8217; </strong></p>
<p><strong>If you cast the text (memo) field as &#8216;nvarchar(max)&#8217; this will correct the error.</strong></p>
<p><strong>Select Cast(oldField as nvarchar(max)) as oldFieldName &#8230;</strong></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/dmgorman.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/dmgorman.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dmgorman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dmgorman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dmgorman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dmgorman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dmgorman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dmgorman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dmgorman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dmgorman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dmgorman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dmgorman.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dmgorman.wordpress.com&blog=2497805&post=29&subd=dmgorman&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://dmgorman.wordpress.com/2008/06/11/11-union-with-sql-memo-text-field-query-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0f40e4ba23d8f519bc9491fe6ae71f78?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dmgorman</media:title>
		</media:content>
	</item>
	</channel>
</rss>