Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
mmalaka
Starting Member
33 Posts |
Posted - 2009-03-05 : 12:17:42
|
| Experts,I am working on ASP.NET 2.0 C# SQL2000 application, in that application I need to check if a field in a table is - Does not allow Null- Not duplicated and does not allow to be duplicatedthis field is not necessary to be a primary key fieldmy question: are those conditions mean that the field should be Identity? is this what Identity means?Any advice? |
|
|
dinakar
Master Smack Fu Yak Hacker
2507 Posts |
Posted - 2009-03-05 : 14:09:23
|
| There is a COLUMNPROPERTY value you can check to see if the column allows nulls.unless you have a unique constraint, the only way to check for duplicates is by running an IF EXISTS query.Dinakar Nethi************************Life is short. Enjoy it.************************http://weblogs.sqlteam.com/dinakar/ |
 |
|
|
|
|
|