Link to home
Start Free TrialLog in
Avatar of Brigt
Brigt

asked on

Create assertion in SQL server 2005

hi
Is create assertion implimented in sql server 2005?
I´m using windows vista with ,I think all, patches
Im trying to force a FD A->B with an assertion but
I always get Incorrect syntax near 'ASSERTION' error

CREATE ASSERTION ab
CHECK ((SELECT COUNT (*)
FROM R AS R1, R AS R2
WHERE (R1.B != R2.B) AND (R1.A = R2.A))
=0)
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brigt
Brigt

ASKER

Thanks pal
I will then have to make a trigger