Originariamente inviato da frykky
E' possibile creare un vincolo in sql server 2005 del tipo

"Se il campo xxx è uguale a True allora i campi yyy e zzz non devono avere valore NULL altrimenti si"

Questo perchè ho un campo "controllo remoto" che se è impostato a vero dovrà per forza avere un valore nel campo "indirizzo IP" e "password VNC".
Per evitare errori sarebbe importante evitare che si scriva un nuovo record e si lascino null quei campi creando casini...

grazie a tutti!
codice:
(xxx = true and yyy is not null and zzz is not null) or (xxx <> true)