<?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; Primary Key Constraints and Unique Key Constraints</title>
	<atom:link href="http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 10 Feb 2012 02:12:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Sourish Biswas</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-250448</link>
		<dc:creator><![CDATA[Sourish Biswas]]></dc:creator>
		<pubDate>Thu, 09 Feb 2012 13:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-250448</guid>
		<description><![CDATA[I have checked
Primay Key does not allow NULL value]]></description>
		<content:encoded><![CDATA[<p>I have checked<br />
Primay Key does not allow NULL value</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthik</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-244410</link>
		<dc:creator><![CDATA[karthik]]></dc:creator>
		<pubDate>Fri, 27 Jan 2012 06:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-244410</guid>
		<description><![CDATA[hai i need the command of without using  constraint to drop the primary key]]></description>
		<content:encoded><![CDATA[<p>hai i need the command of without using  constraint to drop the primary key</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RK</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-230039</link>
		<dc:creator><![CDATA[RK]]></dc:creator>
		<pubDate>Mon, 02 Jan 2012 12:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-230039</guid>
		<description><![CDATA[can you pls give real time examples of a just pk and a unique key which is not PK]]></description>
		<content:encoded><![CDATA[<p>can you pls give real time examples of a just pk and a unique key which is not PK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omkar Joshi</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-191460</link>
		<dc:creator><![CDATA[Omkar Joshi]]></dc:creator>
		<pubDate>Wed, 09 Nov 2011 09:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-191460</guid>
		<description><![CDATA[i have two tables unit and item primary key(uid) of unit table is foreign key of item table
now i want to add the data in item table but due to foreign key problem my data is not inserted into item table in SQL server 2005

what is an alternate way to make insert query on database]]></description>
		<content:encoded><![CDATA[<p>i have two tables unit and item primary key(uid) of unit table is foreign key of item table<br />
now i want to add the data in item table but due to foreign key problem my data is not inserted into item table in SQL server 2005</p>
<p>what is an alternate way to make insert query on database</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashutosh</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-178416</link>
		<dc:creator><![CDATA[Ashutosh]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 14:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-178416</guid>
		<description><![CDATA[perfect answer of unique value in Unique constraint]]></description>
		<content:encoded><![CDATA[<p>perfect answer of unique value in Unique constraint</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hiren,</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-173806</link>
		<dc:creator><![CDATA[Hiren,]]></dc:creator>
		<pubDate>Sat, 01 Oct 2011 09:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-173806</guid>
		<description><![CDATA[Hello Mr. Dave,
	I read your articles so many time which are very fruitful for me,
From their I will get all most all the solutions of my query very easily , But I have some ambiguities 
In my table. Lets give me solution for that .
	My query is , may table is  tab1(colname, tabname) here both are column name and multivalued 
My table data is given as follows :
Opdate	compupdtdtl
Cldate	compupdtdtl
Totalamt	loanstatus
[long list truncated]


My expected output is :   
colname	tab1	tab3	tab4
cldate	cr_cp	compupdtdlt	rpl_emp_leave
loanid	loantrans	compupdtdtl	loanstatus



Could you gime me solution of this problem ,
Anyone ?]]></description>
		<content:encoded><![CDATA[<p>Hello Mr. Dave,<br />
	I read your articles so many time which are very fruitful for me,<br />
From their I will get all most all the solutions of my query very easily , But I have some ambiguities<br />
In my table. Lets give me solution for that .<br />
	My query is , may table is  tab1(colname, tabname) here both are column name and multivalued<br />
My table data is given as follows :<br />
Opdate	compupdtdtl<br />
Cldate	compupdtdtl<br />
Totalamt	loanstatus<br />
[long list truncated]</p>
<p>My expected output is :<br />
colname	tab1	tab3	tab4<br />
cldate	cr_cp	compupdtdlt	rpl_emp_leave<br />
loanid	loantrans	compupdtdtl	loanstatus</p>
<p>Could you gime me solution of this problem ,<br />
Anyone ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilesh</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-173460</link>
		<dc:creator><![CDATA[Nilesh]]></dc:creator>
		<pubDate>Fri, 30 Sep 2011 07:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-173460</guid>
		<description><![CDATA[Hi,
I have one question: I have one table Logs table lots of thread make entry in this table. The Primary key of this table in not identity column.  I am getting primary key conflict error..what should i do now?]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have one question: I have one table Logs table lots of thread make entry in this table. The Primary key of this table in not identity column.  I am getting primary key conflict error..what should i do now?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prabu</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-173126</link>
		<dc:creator><![CDATA[prabu]]></dc:creator>
		<pubDate>Thu, 29 Sep 2011 07:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-173126</guid>
		<description><![CDATA[Really nice site...]]></description>
		<content:encoded><![CDATA[<p>Really nice site&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-164687</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 08:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-164687</guid>
		<description><![CDATA[Find the constraint name and use

alter table person drop constraint constraint_name]]></description>
		<content:encoded><![CDATA[<p>Find the constraint name and use</p>
<p>alter table person drop constraint constraint_name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sarath</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-164295</link>
		<dc:creator><![CDATA[sarath]]></dc:creator>
		<pubDate>Thu, 01 Sep 2011 12:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-164295</guid>
		<description><![CDATA[hello friends,help me on this

Create table person(p_id varchar(10) unique,
name_s varchar(20))

I have created a table person and set p_id as unique.
Now i want to delete the Unique for the P_id..
how can i do that in sql server… reply me asap]]></description>
		<content:encoded><![CDATA[<p>hello friends,help me on this</p>
<p>Create table person(p_id varchar(10) unique,<br />
name_s varchar(20))</p>
<p>I have created a table person and set p_id as unique.<br />
Now i want to delete the Unique for the P_id..<br />
how can i do that in sql server… reply me asap</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 6 of 31 Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-146271</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 6 of 31 Journey to SQLAuthority]]></dc:creator>
		<pubDate>Wed, 06 Jul 2011 01:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-146271</guid>
		<description><![CDATA[[...] Both primary key and unique key enforce uniqueness of the column on which they are defined. But by default, the primary key creates a clustered index on the column, whereas unique key creates a non-clustered index by default. Another major difference is that primary key doesn&#8217;t allow NULLs, but unique key allows one NULL only. (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Both primary key and unique key enforce uniqueness of the column on which they are defined. But by default, the primary key creates a clustered index on the column, whereas unique key creates a non-clustered index by default. Another major difference is that primary key doesn&#8217;t allow NULLs, but unique key allows one NULL only. (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neyaz khan</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-133786</link>
		<dc:creator><![CDATA[Neyaz khan]]></dc:creator>
		<pubDate>Tue, 10 May 2011 08:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-133786</guid>
		<description><![CDATA[Yes u are Write  Unique Constraint can Contain 1 null Value Because 1st Time Null Is  Also Unique.]]></description>
		<content:encoded><![CDATA[<p>Yes u are Write  Unique Constraint can Contain 1 null Value Because 1st Time Null Is  Also Unique.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-132496</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 02 May 2011 10:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-132496</guid>
		<description><![CDATA[You need to post some sample data with expected result to help you]]></description>
		<content:encoded><![CDATA[<p>You need to post some sample data with expected result to help you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajendra Sorkhe</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-131777</link>
		<dc:creator><![CDATA[Rajendra Sorkhe]]></dc:creator>
		<pubDate>Thu, 28 Apr 2011 15:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-131777</guid>
		<description><![CDATA[I want to update a table in which almost 20 records for a single name.
I want to update dates in a table which is assoicated with a single name for 20 records. I want to keep the name unchanged n want to update the dates as 3,4,5, and so on.]]></description>
		<content:encoded><![CDATA[<p>I want to update a table in which almost 20 records for a single name.<br />
I want to update dates in a table which is assoicated with a single name for 20 records. I want to keep the name unchanged n want to update the dates as 3,4,5, and so on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shivani</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-131400</link>
		<dc:creator><![CDATA[shivani]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 06:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-131400</guid>
		<description><![CDATA[I am making project (desktop application) using C#.NET and SQL server 2008.I have used p.k and f.k in three tables....and when i update or delete or insert i get violation error and its natural but is there any solution that neither constraints get affected nor my prject.]]></description>
		<content:encoded><![CDATA[<p>I am making project (desktop application) using C#.NET and SQL server 2008.I have used p.k and f.k in three tables&#8230;.and when i update or delete or insert i get violation error and its natural but is there any solution that neither constraints get affected nor my prject.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venkat</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-130417</link>
		<dc:creator><![CDATA[Venkat]]></dc:creator>
		<pubDate>Thu, 21 Apr 2011 22:02:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-130417</guid>
		<description><![CDATA[SELECT A.* FROM A, B WHERE A.CITY = B.CITY AND (A.STATE  B.STATE OR A.PINCODE  B.PINCODE OR A.COUNTRY  B.COUNTRY)]]></description>
		<content:encoded><![CDATA[<p>SELECT A.* FROM A, B WHERE A.CITY = B.CITY AND (A.STATE  B.STATE OR A.PINCODE  B.PINCODE OR A.COUNTRY  B.COUNTRY)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashanth</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-127859</link>
		<dc:creator><![CDATA[Prashanth]]></dc:creator>
		<pubDate>Sat, 09 Apr 2011 04:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-127859</guid>
		<description><![CDATA[Hi 

I have a two tables  A1 &amp; A2 with columns 

ADD1, city, state, postal_code &amp; country

&amp; B_ADD1,B_state,B_postal_code &amp; B_country.

The second table has the correct combination of city,state,postal_code and Country  &amp; 

the first table can have errors.

I need to write a query or create a view which will fetch me all the combinations of A which does not have a perfect match in B

for example

A has
hyd,ap,500056,india 
bombay,ap,500056,india

B has
hyd,ap,500056,india
bombay,mah,2993849,india

my query must return the error record from A

bombay,ap,500056,india 

after checking all combinations in B

Thanks in Advance
Prashanth]]></description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>I have a two tables  A1 &amp; A2 with columns </p>
<p>ADD1, city, state, postal_code &amp; country</p>
<p>&amp; B_ADD1,B_state,B_postal_code &amp; B_country.</p>
<p>The second table has the correct combination of city,state,postal_code and Country  &amp; </p>
<p>the first table can have errors.</p>
<p>I need to write a query or create a view which will fetch me all the combinations of A which does not have a perfect match in B</p>
<p>for example</p>
<p>A has<br />
hyd,ap,500056,india<br />
bombay,ap,500056,india</p>
<p>B has<br />
hyd,ap,500056,india<br />
bombay,mah,2993849,india</p>
<p>my query must return the error record from A</p>
<p>bombay,ap,500056,india </p>
<p>after checking all combinations in B</p>
<p>Thanks in Advance<br />
Prashanth</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav Mittal</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-110313</link>
		<dc:creator><![CDATA[Gaurav Mittal]]></dc:creator>
		<pubDate>Mon, 10 Jan 2011 11:53:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-110313</guid>
		<description><![CDATA[first u have to make the not null
first u run the query
Alter table sample modify sno datatype not null

After this query u can define the primary key on the column.]]></description>
		<content:encoded><![CDATA[<p>first u have to make the not null<br />
first u run the query<br />
Alter table sample modify sno datatype not null</p>
<p>After this query u can define the primary key on the column.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narasimha Y</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-100377</link>
		<dc:creator><![CDATA[Narasimha Y]]></dc:creator>
		<pubDate>Tue, 16 Nov 2010 16:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-100377</guid>
		<description><![CDATA[Hi Ramya,

it seems the column PID is accepting null values..that&#039;s why the PK constraint is not defined. go to the table design and remove the Allow Nulls check mark for the PID column and then try again.]]></description>
		<content:encoded><![CDATA[<p>Hi Ramya,</p>
<p>it seems the column PID is accepting null values..that&#8217;s why the PK constraint is not defined. go to the table design and remove the Allow Nulls check mark for the PID column and then try again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narasimha Y</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-100374</link>
		<dc:creator><![CDATA[Narasimha Y]]></dc:creator>
		<pubDate>Tue, 16 Nov 2010 15:58:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-100374</guid>
		<description><![CDATA[Hi Swarup &amp; ankhenatraj,

when i tried to create primary key as you said, i have also got the same error as you guys mentioned.

try the steps as deepika mentioned.  here are the steps again for you.

1) right click on the table name and select &quot;Modify&quot; in the Object Explorer(which is right side of the query window)

2) remove the check mark for the column sno under Allow Nulls(which will then not allow the null values for that column and which is primary for creating the primary key)

3) close that window and it will ask to save that table, then save it

4) now again try to run the add constraint query, now it will execute successfully...

--Narasimha]]></description>
		<content:encoded><![CDATA[<p>Hi Swarup &amp; ankhenatraj,</p>
<p>when i tried to create primary key as you said, i have also got the same error as you guys mentioned.</p>
<p>try the steps as deepika mentioned.  here are the steps again for you.</p>
<p>1) right click on the table name and select &#8220;Modify&#8221; in the Object Explorer(which is right side of the query window)</p>
<p>2) remove the check mark for the column sno under Allow Nulls(which will then not allow the null values for that column and which is primary for creating the primary key)</p>
<p>3) close that window and it will ask to save that table, then save it</p>
<p>4) now again try to run the add constraint query, now it will execute successfully&#8230;</p>
<p>&#8211;Narasimha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-99330</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 12 Nov 2010 14:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-99330</guid>
		<description><![CDATA[You need to disable the constraint before alter and enable it after alter]]></description>
		<content:encoded><![CDATA[<p>You need to disable the constraint before alter and enable it after alter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harsha</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-99293</link>
		<dc:creator><![CDATA[harsha]]></dc:creator>
		<pubDate>Fri, 12 Nov 2010 11:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-99293</guid>
		<description><![CDATA[Hi,
I have to alter some column&#039;s datatype in many tables. Problem is, the columns are composite keys or foreign keys. When I am altering the data type its giving error 

Server: Msg 5074, Level 16, State 8, Line 1
Server: Msg 4922, Level 16, State 1, Line 1

I do not want to drop the constraint as there are lots of data in the tables. 
Please help

thanks 
Harsha]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have to alter some column&#8217;s datatype in many tables. Problem is, the columns are composite keys or foreign keys. When I am altering the data type its giving error </p>
<p>Server: Msg 5074, Level 16, State 8, Line 1<br />
Server: Msg 4922, Level 16, State 1, Line 1</p>
<p>I do not want to drop the constraint as there are lots of data in the tables.<br />
Please help</p>
<p>thanks<br />
Harsha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-97107</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 01 Nov 2010 08:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-97107</guid>
		<description><![CDATA[Start with 

select * from INFORMATION_SCHEMA.TABLE_CONSTRAINTS]]></description>
		<content:encoded><![CDATA[<p>Start with </p>
<p>select * from INFORMATION_SCHEMA.TABLE_CONSTRAINTS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heba talal</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-97104</link>
		<dc:creator><![CDATA[heba talal]]></dc:creator>
		<pubDate>Mon, 01 Nov 2010 07:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-97104</guid>
		<description><![CDATA[hi,
i need a sql 2000 script to find the unique constraint in a spacific table 


thnx]]></description>
		<content:encoded><![CDATA[<p>hi,<br />
i need a sql 2000 script to find the unique constraint in a spacific table </p>
<p>thnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/02/05/sql-server-primary-key-constraints-and-unique-key-constraints/#comment-73023</link>
		<dc:creator><![CDATA[Brian Tkatch]]></dc:creator>
		<pubDate>Tue, 25 May 2010 11:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=38#comment-73023</guid>
		<description><![CDATA[@ahmed


unique(a): COLUMN a must be UNIQUE by itself.
unique(b): COLUMN b must be UNIQUE by itself.
unique(a) unique(b): Both COLUMN a and b must be UNIQUE separately.
unique(a,b): COLUMNs a and B must be UNIQUE in combination.

a b
- -
1 2
1 3

That is unique(a,b), but is not unique(a) unique(b), because b is not UNIQUE on its own.]]></description>
		<content:encoded><![CDATA[<p>@ahmed</p>
<p>unique(a): COLUMN a must be UNIQUE by itself.<br />
unique(b): COLUMN b must be UNIQUE by itself.<br />
unique(a) unique(b): Both COLUMN a and b must be UNIQUE separately.<br />
unique(a,b): COLUMNs a and B must be UNIQUE in combination.</p>
<p>a b<br />
- -<br />
1 2<br />
1 3</p>
<p>That is unique(a,b), but is not unique(a) unique(b), because b is not UNIQUE on its own.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

