<?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/"
	>

<channel>
	<title>Sachin Jain &#187; unique constraint</title>
	<atom:link href="http://www.sachinjain.me/tag/unique-constraint/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sachinjain.me</link>
	<description>IT Professional - MCA, MBA</description>
	<lastBuildDate>Thu, 20 May 2010 15:07:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unique constraints for LARGE TEXT columns &#8211; SQL</title>
		<link>http://www.sachinjain.me/2009/11/unique-constraints-for-large-text-columns-sql/</link>
		<comments>http://www.sachinjain.me/2009/11/unique-constraints-for-large-text-columns-sql/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 15:33:32 +0000</pubDate>
		<dc:creator>Sachin Jain</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[unique constraint]]></category>

		<guid isPermaLink="false">http://www.sachinjain.me/?p=141</guid>
		<description><![CDATA[






Suppose you are storing URL in your table and you want to apply UNIQUE contraint but as SQL allows only 900 byte limit. how can you put unique constraint for larger text ??
For this you can create a computed CHECKSUM column which is an integer vale and put constraint on it.
Example as follows
CREATE TABLE messages [...]]]></description>
		<wfw:commentRss>http://www.sachinjain.me/2009/11/unique-constraints-for-large-text-columns-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
