Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a check constraint
Message
From
28/11/2005 08:52:23
Jon Neale
Bond International Software
Wootton Bassett, United Kingdom
 
 
To
28/11/2005 08:38:02
General information
Forum:
Microsoft SQL Server
Category:
Database management
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01072346
Message ID:
01072399
Views:
20
It's a bracket thing, try this:

(0>(SELECT COUNT(*) FROM pos_s_invoice WHERE (doc_no IS NOT NULL and pos_is <> 899)GROUP BY doc_no HAVING (COUNT(*) > 1)))

>Hi Jon,
>
>thanks for you reply. I tried the code but i still have the same problem. In fact i don't see any difference between your code and mine except for the table and field names. Where are you inserting this code ?
>Is it when you do a right click on your table, than choose design table,right click check constrains and then new ?
>
>thnx
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform