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)
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will then have to make a trigger