﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administering / SQL Server 2005  / Creating a Check Constraint / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 18 May 2013 05:24:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Creating a Check Constraint</title><link>http://www.sqlservercentral.com/Forums/Topic481464-146-1.aspx</link><description>Please post new questions in a new thread. Thanks.</description><pubDate>Sun, 27 Jun 2010 23:36:30 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: Creating a Check Constraint</title><link>http://www.sqlservercentral.com/Forums/Topic481464-146-1.aspx</link><description>hello, I'm a beginner in SQL Server 2005, i'm trying to create[b] check constraint[/b], and when i'm trying to create it, an error message was appear. my steps are:1) The field is ZIP using nchar(5), 2) in the [b]Expression[/b] I type: zip LIKE '[0-9][0-9][0-9][0-9][0-9]'3) When I click Save button, there was an error message and unable to save the changeskindly help...</description><pubDate>Sun, 27 Jun 2010 20:15:40 GMT</pubDate><dc:creator>marina.x.rotua</dc:creator></item><item><title>RE: Creating a Check Constraint</title><link>http://www.sqlservercentral.com/Forums/Topic481464-146-1.aspx</link><description>don't believe everything you read.</description><pubDate>Tue, 08 Apr 2008 07:03:38 GMT</pubDate><dc:creator>Michael Earl-395764</dc:creator></item><item><title>RE: Creating a Check Constraint</title><link>http://www.sqlservercentral.com/Forums/Topic481464-146-1.aspx</link><description>Remove @  from your statement(  [b]@[/b]State In('CA', 'UT', 'AZ', 'WY'))</description><pubDate>Tue, 08 Apr 2008 07:03:19 GMT</pubDate><dc:creator>zgembo</dc:creator></item><item><title>RE: Creating a Check Constraint</title><link>http://www.sqlservercentral.com/Forums/Topic481464-146-1.aspx</link><description>Thank you so much Michael,The book does specify the @ but it is incorrect! Thank you again. I will remember.Daniel</description><pubDate>Tue, 08 Apr 2008 06:59:06 GMT</pubDate><dc:creator>daniel-703741</dc:creator></item><item><title>RE: Creating a Check Constraint</title><link>http://www.sqlservercentral.com/Forums/Topic481464-146-1.aspx</link><description>Remove the @ symbolState In('CA', 'UT', 'AZ', 'WY')"State" is referring to your field name.</description><pubDate>Tue, 08 Apr 2008 06:50:08 GMT</pubDate><dc:creator>Michael Earl-395764</dc:creator></item><item><title>Creating a Check Constraint</title><link>http://www.sqlservercentral.com/Forums/Topic481464-146-1.aspx</link><description>Hello. I am obviously very new to SQL Server 2005 Express. I am an Access developer and I am giving a try to SQL Server Express. Maybe my question will be answered faster this way  8)I am going through a book (... In 24 Hours series) and every time I try to complete a simple exercise about creating a (seems like a) Check Constraint I get an error. Here's what I am doing:The field is [b]State[/b]: Char (2) and we want to apply the constraint where only the following values are accepted: CA, UT, AZ WY, and a few others.My steps:I click the selected to the left of the [b]State [/b]field and click [b]Manage Check Constraints[/b].In the Check Constraint dialog I click [b]Add [/b]and the constraint CK_Table_1* appears. The name is simply CK_Table_1.I name the constraint ckState (like in the book)In the [b]Expression [/b]I type @State In('CA', 'UT', 'AZ', 'WY') and as soon as I hit Enter a message appears that there is an error in the constraint and ask me if I want to Edit it.I am at loss here because this matches the screen shot in the book.Can anyone help?I hope I provided enough information.</description><pubDate>Tue, 08 Apr 2008 06:17:32 GMT</pubDate><dc:creator>daniel-703741</dc:creator></item></channel></rss>