|
-
March 1st, 2004, 09:08 AM
#1
SQL Server UNIQUE constraint
Hi,
I want to create a constraint on a field.
I need uniqueness as long as the field is not null (allow multiple nulls).
How am I going to do this?
Extreme situations require extreme measures
-
March 7th, 2004, 01:59 PM
#2
I believe you can't..
you can create a triggers to handle this setuation..
one trigger for insert and the other for update.And check if the data violates your rules.
-
March 15th, 2004, 07:10 AM
#3
Yes, it is true. The problem I'm having now is actually make this trigger work since I need to use dynamic SQL. I posted this in another thread.
Thanx a lot
Panayotis
Extreme situations require extreme measures
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|