<?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; Difference Between Unique Index vs Unique Constraint</title>
	<atom:link href="http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Fri, 20 Nov 2009 20:17:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-53054</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Wed, 17 Jun 2009 11:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-53054</guid>
		<description>@Reed

Very interesting!

CREATE TABLE A(A INT UNIQUE);
INSERT INTO A(A) VALUES(1);
INSERT INTO A(A) VALUES(1);
DROP TABLE A;

CREATE TABLE A(A INT);
CREATE UNIQUE INDEX AA ON A(A);
INSERT INTO A(A) VALUES(1);
INSERT INTO A(A) VALUES(1);
DROP TABLE A;</description>
		<content:encoded><![CDATA[<p>@Reed</p>
<p>Very interesting!</p>
<p>CREATE TABLE A(A INT UNIQUE);<br />
INSERT INTO A(A) VALUES(1);<br />
INSERT INTO A(A) VALUES(1);<br />
DROP TABLE A;</p>
<p>CREATE TABLE A(A INT);<br />
CREATE UNIQUE INDEX AA ON A(A);<br />
INSERT INTO A(A) VALUES(1);<br />
INSERT INTO A(A) VALUES(1);<br />
DROP TABLE A;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reed</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-53052</link>
		<dc:creator>Reed</dc:creator>
		<pubDate>Wed, 17 Jun 2009 09:19:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-53052</guid>
		<description>Just discovered another difference between declaring a unique index vs. a unique constraint.

SQL will raise an error with an error code of 2601 when violating a unique index, while it will use error code 2627 for violating a unique constraint.

Minor difference, but while they are very similar, they are NOT the same.</description>
		<content:encoded><![CDATA[<p>Just discovered another difference between declaring a unique index vs. a unique constraint.</p>
<p>SQL will raise an error with an error code of 2601 when violating a unique index, while it will use error code 2627 for violating a unique constraint.</p>
<p>Minor difference, but while they are very similar, they are NOT the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-47201</link>
		<dc:creator>SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-47201</guid>
		<description>[...] SQL SERVER - Difference between Unique Index vs Unique Constraint [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; Difference between Unique Index vs Unique Constraint [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - Explanation about Usage of Unique Index and Unique Constraint Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-42490</link>
		<dc:creator>SQL SERVER - Explanation about Usage of Unique Index and Unique Constraint Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Sun, 07 Sep 2008 01:31:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-42490</guid>
		<description>[...] Cristiano asked following questions : [...]</description>
		<content:encoded><![CDATA[<p>[...] Cristiano asked following questions : [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-42275</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Mon, 01 Sep 2008 16:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-42275</guid>
		<description>@Cristiano,

As you may be aware, Unique Key can allow only one null. Meaning only one null can be accepted not more than that. If you have more than one null on any column, you cannot make that column/field as  unique key.

I am sure there must be another way of doing this, I would do something like this,

1. Since there is no way you can make that field a unique key, how about making a composite key. 

  a) Combine this field with any other unique column/field and make a composite unique key. If any other unique key already exists then add this field to the previous unique key. 

  b) if you do not have any unique key ( I am sure you do), but if you dont, then you can do this always, using Enterprise manager or SSMS object Explorer, create a new Identity column in the table and then create a unique composite key on these two field. ( You can create an identity column if you have data in the table, you DONT have to drop and recreate the table, using EM or SSMS you can always create a identity column in the table).

If you consider case a), then make sure there are no duplicates for the combination of new field and the field you chose for unique key. 

If you create a composite unique key on cola and colb combined then you can have more than one null in cola and in colb, but again the combination of cola and colb should be unique. 

Once you start making a composite unique key... this concept will be more easier. 

Try doing this, either in Enterprise Manager or SSMS ( Object Explorer) much easier in interface than executing scripts.

Hope this helps.
Imran.</description>
		<content:encoded><![CDATA[<p>@Cristiano,</p>
<p>As you may be aware, Unique Key can allow only one null. Meaning only one null can be accepted not more than that. If you have more than one null on any column, you cannot make that column/field as  unique key.</p>
<p>I am sure there must be another way of doing this, I would do something like this,</p>
<p>1. Since there is no way you can make that field a unique key, how about making a composite key. </p>
<p>  a) Combine this field with any other unique column/field and make a composite unique key. If any other unique key already exists then add this field to the previous unique key. </p>
<p>  b) if you do not have any unique key ( I am sure you do), but if you dont, then you can do this always, using Enterprise manager or SSMS object Explorer, create a new Identity column in the table and then create a unique composite key on these two field. ( You can create an identity column if you have data in the table, you DONT have to drop and recreate the table, using EM or SSMS you can always create a identity column in the table).</p>
<p>If you consider case a), then make sure there are no duplicates for the combination of new field and the field you chose for unique key. </p>
<p>If you create a composite unique key on cola and colb combined then you can have more than one null in cola and in colb, but again the combination of cola and colb should be unique. </p>
<p>Once you start making a composite unique key&#8230; this concept will be more easier. </p>
<p>Try doing this, either in Enterprise Manager or SSMS ( Object Explorer) much easier in interface than executing scripts.</p>
<p>Hope this helps.<br />
Imran.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristiano</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-42272</link>
		<dc:creator>Cristiano</dc:creator>
		<pubDate>Mon, 01 Sep 2008 14:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-42272</guid>
		<description>i need to know how work when there is a situation that there is a Unique Key and this field &quot;alow null&quot;, but when i am going to create a Unique Key the SQLSERVER saw that there were values duplicated and the values are &quot;nulls&quot;. How do i sove this problem?</description>
		<content:encoded><![CDATA[<p>i need to know how work when there is a situation that there is a Unique Key and this field &#8220;alow null&#8221;, but when i am going to create a Unique Key the SQLSERVER saw that there were values duplicated and the values are &#8220;nulls&#8221;. How do i sove this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar Parekh</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-40102</link>
		<dc:creator>Tushar Parekh</dc:creator>
		<pubDate>Sat, 12 Jul 2008 03:42:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-40102</guid>
		<description>TommCatt

Thankx for your reply.

Your explanation is correct.

As mentioned by you, I am aware of SQL Server&#039;s handling of various string data types.  

In my opinion, ignoring trailing blanks while comparing string objects (aspecially when they are defined as variable length strings is a bad design flow).

I have designed a data warehouse where we are bringing data from Oracle whose table&#039;s have key values e.g. AB and AB.  Again having space in a key field itself is a bad design but structurally Oracle treats AB and AB as different values (which infact they are) and handles them OK.

When I bring then over to SQL server, I get unique key violation  ... vola ... :)

My work around is to replace trailing blanks in key fields with ~ character.  Again a temporary fix till SQL Server provides a way to have sound string data type comparisons.

Again, Thankx for your reply.</description>
		<content:encoded><![CDATA[<p>TommCatt</p>
<p>Thankx for your reply.</p>
<p>Your explanation is correct.</p>
<p>As mentioned by you, I am aware of SQL Server&#8217;s handling of various string data types.  </p>
<p>In my opinion, ignoring trailing blanks while comparing string objects (aspecially when they are defined as variable length strings is a bad design flow).</p>
<p>I have designed a data warehouse where we are bringing data from Oracle whose table&#8217;s have key values e.g. AB and AB.  Again having space in a key field itself is a bad design but structurally Oracle treats AB and AB as different values (which infact they are) and handles them OK.</p>
<p>When I bring then over to SQL server, I get unique key violation  &#8230; vola &#8230; :)</p>
<p>My work around is to replace trailing blanks in key fields with ~ character.  Again a temporary fix till SQL Server provides a way to have sound string data type comparisons.</p>
<p>Again, Thankx for your reply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TommCatt</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-40090</link>
		<dc:creator>TommCatt</dc:creator>
		<pubDate>Fri, 11 Jul 2008 18:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-40090</guid>
		<description>Darshan,
I&#039;m afraid that is incorrect. A foreign key may reference the primary key of the table *or* any column(s) defined as unique.

Tushar,
In Sql Server, any trailing spaces are ignored when comparing strings. I assume this is so that if a field is defined &quot;char(10)&quot; and another is defined &quot;varchar(10)&quot; and you insert &#039;a&#039; into each one, then CharField = VarCharField will evaluate to TRUE even though the char(10) field actually contains an &#039;a&#039; followed by 9 spaces.

So in statements like &quot;where RTrim(CharField) = RTrim(VarCharField)&quot;, the RTrim is not necessary. Even Len(CharField) and Len(VarCharField) will return 1 for both. However, leading spaces *are* significant.</description>
		<content:encoded><![CDATA[<p>Darshan,<br />
I&#8217;m afraid that is incorrect. A foreign key may reference the primary key of the table *or* any column(s) defined as unique.</p>
<p>Tushar,<br />
In Sql Server, any trailing spaces are ignored when comparing strings. I assume this is so that if a field is defined &#8220;char(10)&#8221; and another is defined &#8220;varchar(10)&#8221; and you insert &#8216;a&#8217; into each one, then CharField = VarCharField will evaluate to TRUE even though the char(10) field actually contains an &#8216;a&#8217; followed by 9 spaces.</p>
<p>So in statements like &#8220;where RTrim(CharField) = RTrim(VarCharField)&#8221;, the RTrim is not necessary. Even Len(CharField) and Len(VarCharField) will return 1 for both. However, leading spaces *are* significant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar Parekh</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-39863</link>
		<dc:creator>Tushar Parekh</dc:creator>
		<pubDate>Mon, 07 Jul 2008 14:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-39863</guid>
		<description>please explain how the value &#039;a&#039; and &#039;a &#039; are treated the same in SQL Server 2005 when creating indexes:

create table a(b nvarchar(5))
insert into a values (&#039;a&#039;)
insert into a values (&#039;a &#039;) -- please note space at the end
create unique index a1 on a(b)

gives error:

Msg 1505, Level 16, State 1, Line 2
The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name &#039;dbo.a&#039; and the index name &#039;a1&#039;. The duplicate key value is (a    ).</description>
		<content:encoded><![CDATA[<p>please explain how the value &#8216;a&#8217; and &#8216;a &#8216; are treated the same in SQL Server 2005 when creating indexes:</p>
<p>create table a(b nvarchar(5))<br />
insert into a values (&#8216;a&#8217;)<br />
insert into a values (&#8216;a &#8216;) &#8212; please note space at the end<br />
create unique index a1 on a(b)</p>
<p>gives error:</p>
<p>Msg 1505, Level 16, State 1, Line 2<br />
The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name &#8216;dbo.a&#8217; and the index name &#8216;a1&#8242;. The duplicate key value is (a    ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darshan shah</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-39103</link>
		<dc:creator>Darshan shah</dc:creator>
		<pubDate>Mon, 09 Jun 2008 11:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-39103</guid>
		<description>Hi Pardeepe,

U can define unique key on varchar datatype but u can&#039;t do it on bit datatype bcz bit datatype has values 0,1,null .</description>
		<content:encoded><![CDATA[<p>Hi Pardeepe,</p>
<p>U can define unique key on varchar datatype but u can&#8217;t do it on bit datatype bcz bit datatype has values 0,1,null .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darshan shah</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-39102</link>
		<dc:creator>Darshan shah</dc:creator>
		<pubDate>Mon, 09 Jun 2008 11:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-39102</guid>
		<description>Hi Symphani,

No u can&#039;t use like that . bcz F.K is only reference to the P.K. Yes P.K is unique key but unique is not P.K.</description>
		<content:encoded><![CDATA[<p>Hi Symphani,</p>
<p>No u can&#8217;t use like that . bcz F.K is only reference to the P.K. Yes P.K is unique key but unique is not P.K.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darshan shah</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-39101</link>
		<dc:creator>Darshan shah</dc:creator>
		<pubDate>Mon, 09 Jun 2008 11:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-39101</guid>
		<description>Hi Pinal ,


the one more difference betn unique index and unique constraint is index is used to  fetch the data fast. tht is use for improve the performance of fetching the data.  where unique constraint is used to prevent the entering the redudant data in to the table.</description>
		<content:encoded><![CDATA[<p>Hi Pinal ,</p>
<p>the one more difference betn unique index and unique constraint is index is used to  fetch the data fast. tht is use for improve the performance of fetching the data.  where unique constraint is used to prevent the entering the redudant data in to the table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darshan shah</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-39100</link>
		<dc:creator>Darshan shah</dc:creator>
		<pubDate>Mon, 09 Jun 2008 11:36:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-39100</guid>
		<description>Hi Amar Kumar ,
The main difference betn P.K and unique key is P.K. does not allow null value,where unique key allows null values.

When P.K is created at tht time  cluster index is created autmatically and when unique key is created at that time non clustr index is created.</description>
		<content:encoded><![CDATA[<p>Hi Amar Kumar ,<br />
The main difference betn P.K and unique key is P.K. does not allow null value,where unique key allows null values.</p>
<p>When P.K is created at tht time  cluster index is created autmatically and when unique key is created at that time non clustr index is created.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M Azim</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-37452</link>
		<dc:creator>M Azim</dc:creator>
		<pubDate>Sat, 10 May 2008 05:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-37452</guid>
		<description>Surprisingly when I created unique index on one my tables it did not stop me to insert duplicates, while the unique constraint did the trick. Can you please explain why it happened?

kind regards,

Azim</description>
		<content:encoded><![CDATA[<p>Surprisingly when I created unique index on one my tables it did not stop me to insert duplicates, while the unique constraint did the trick. Can you please explain why it happened?</p>
<p>kind regards,</p>
<p>Azim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MLC</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-34444</link>
		<dc:creator>MLC</dc:creator>
		<pubDate>Wed, 19 Mar 2008 07:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-34444</guid>
		<description>Can we create a uiique constraint without an uniqueindex when i am trying to drop a unique index which is created along with unique constraint it is giving error</description>
		<content:encoded><![CDATA[<p>Can we create a uiique constraint without an uniqueindex when i am trying to drop a unique index which is created along with unique constraint it is giving error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Symphani</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-34228</link>
		<dc:creator>Symphani</dc:creator>
		<pubDate>Mon, 10 Mar 2008 20:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-34228</guid>
		<description>Table_A:
seqid (Primary Key)
cmpno, prdno (Unique key)

TABLE_B:
bcompno, bprdno (Refers cmpno, prdno of TABLE_A)

Can I have a Foreign Key relationship between TABLE_B and TABLE_A, using Unique Key, in SQL Server 2005?</description>
		<content:encoded><![CDATA[<p>Table_A:<br />
seqid (Primary Key)<br />
cmpno, prdno (Unique key)</p>
<p>TABLE_B:<br />
bcompno, bprdno (Refers cmpno, prdno of TABLE_A)</p>
<p>Can I have a Foreign Key relationship between TABLE_B and TABLE_A, using Unique Key, in SQL Server 2005?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pardeepe</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-34085</link>
		<dc:creator>Pardeepe</dc:creator>
		<pubDate>Mon, 03 Mar 2008 10:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-34085</guid>
		<description>How can i add a unique cnstraint to table on 
combination of  bit and varchar datatypes

Thanks in advance</description>
		<content:encoded><![CDATA[<p>How can i add a unique cnstraint to table on<br />
combination of  bit and varchar datatypes</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shahin</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-33284</link>
		<dc:creator>shahin</dc:creator>
		<pubDate>Sat, 26 Jan 2008 08:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-33284</guid>
		<description>want to know, while inserting multiple records in a table under one transaction at what time a unique constraint and a unique index will check for uniqueness. As Books online suggests to create Unique constraint instead of Unique index, it gave me some idea, perhaps unique key checks uniqueness after every insert while unique index verifies after inserting all records. But i still want to know the functionality of the both.</description>
		<content:encoded><![CDATA[<p>want to know, while inserting multiple records in a table under one transaction at what time a unique constraint and a unique index will check for uniqueness. As Books online suggests to create Unique constraint instead of Unique index, it gave me some idea, perhaps unique key checks uniqueness after every insert while unique index verifies after inserting all records. But i still want to know the functionality of the both.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joyal</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-21723</link>
		<dc:creator>Joyal</dc:creator>
		<pubDate>Wed, 21 Nov 2007 13:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-21723</guid>
		<description>Hello,

FYI,

In fact, unique key allows single nulls.

E.g.

ID-Name(AS UNIQUE KEY)
1-Null
2-Joyal
3-Abhay

Thanks.

Regards,
Joyal</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>FYI,</p>
<p>In fact, unique key allows single nulls.</p>
<p>E.g.</p>
<p>ID-Name(AS UNIQUE KEY)<br />
1-Null<br />
2-Joyal<br />
3-Abhay</p>
<p>Thanks.</p>
<p>Regards,<br />
Joyal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amar kaur</title>
		<link>http://blog.sqlauthority.com/2007/04/26/sql-server-difference-between-unique-index-vs-unique-constraint/#comment-6198</link>
		<dc:creator>amar kaur</dc:creator>
		<pubDate>Mon, 30 Jul 2007 11:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/26/difference-between-unique-index-vs-unique-constraint/#comment-6198</guid>
		<description>hello,



Plz tell me what is the difference between unique key and primary key 

also tell me how could i download the small date bank and sql at home because i am learning it in germany and also working in a company plz tell me how could i free download .</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>Plz tell me what is the difference between unique key and primary key </p>
<p>also tell me how could i download the small date bank and sql at home because i am learning it in germany and also working in a company plz tell me how could i free download .</p>
]]></content:encoded>
	</item>
</channel>
</rss>
