Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #541
| From | --CELKO-- <jcelko212@earthlink.net> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver, microsoft.public.sqlserver.programming |
| Subject | Re: SSE 2008: Check Clause Question |
| Date | 2011-07-16 06:46 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <e122c80a-0553-4b1b-9a1f-7cfa0024f8a1@e8g2000yqi.googlegroups.com> (permalink) |
| References | <sgap171gthveuafqqeh17jgua36k2ihp49@4ax.com> <c359ded2-0cb7-47d4-9c68-8392ab12de48@j25g2000vbr.googlegroups.com> <s1ru17l3vu986nl8gcfmv80dmnhv6m50me@4ax.com> |
Cross-posted to 2 groups.
The way you get around this in ANSI/ISO Standard SQL is with the CREATE ASSERTION statement. It is a CHECK() done at the schema level instead of the table level. That is why CONSTRAINT names are globla and noyt local to their table. CREATE ASSERTION NotEmpty CHECK ((SELECT COUNT(*) FROM Foobar) > 0);
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Find similar
SSE 2008: Check Clause Question Gene Wirchenko <genew@ocis.net> - 2011-07-12 13:12 -0700
Re: SSE 2008: Check Clause Question Erland Sommarskog <esquel@sommarskog.se> - 2011-07-12 23:56 +0200
Re: SSE 2008: Check Clause Question Gene Wirchenko <genew@ocis.net> - 2011-07-12 15:47 -0700
Re: SSE 2008: Check Clause Question Erland Sommarskog <esquel@sommarskog.se> - 2011-07-13 10:17 +0200
Re: SSE 2008: Check Clause Question --CELKO-- <jcelko212@earthlink.net> - 2011-07-14 07:06 -0700
Re: SSE 2008: Check Clause Question --CELKO-- <jcelko212@earthlink.net> - 2011-07-14 07:12 -0700
Re: SSE 2008: Check Clause Question "Fred." <ghrno-google@yahoo.com> - 2011-07-14 08:22 -0700
Re: SSE 2008: Check Clause Question Gene Wirchenko <genew@ocis.net> - 2011-07-14 15:26 -0700
Re: SSE 2008: Check Clause Question Erland Sommarskog <esquel@sommarskog.se> - 2011-07-15 10:58 +0200
Re: SSE 2008: Check Clause Question Gene Wirchenko <genew@ocis.net> - 2011-07-15 11:07 -0700
Re: SSE 2008: Check Clause Question --CELKO-- <jcelko212@earthlink.net> - 2011-07-16 06:46 -0700
csiph-web