Database : SQL SERVER 2005
Front-End : Visual Studio 2005
I create table T1 with columns : EMPNUM numeric(3,0),EMPName varchar(25)
EMPNUM is unique key.
I insert NULL value in EMPNUM.
It allows inserting of NULL value once only then it will give error about violating of Unique Key.
If you have solution let me know in brief as soon as possible.
Unique Key Problem
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Santhosh NRank #4,788 · 325 reputationPosted Dec 24, 2010, 9:00 AM EST
if u dont want to allow..go for primary key so that it does not allow
Suthish NairRank #92 · 22.8K reputationPosted Dec 24, 2010, 8:25 PM EST
Please explain this line and give more details.
"It allows inserting of NULL value once only then it will give error about violating of Unique Key."
Vijay YadavRank #1,637 · 943 reputationPosted Jan 18, 2011, 8:56 PM EST
If you have unique key then it will allows the null value only once so as to maintain uniqueness throughout the table because unique key does not allow the same value again.ok!!!
Thanks
Vijay