troubleshooting Question

Create assertion in SQL server 2005

Avatar of Brigt
Brigt asked on
Microsoft SQL Server 2005Windows VistaSQL
2 Comments1 Solution5268 ViewsLast Modified:
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)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros