﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / SQL Server 2005 Security  / INSERTING VALUES IN A TABLE USING 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>Thu, 20 Jun 2013 02:53:36 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: INSERTING VALUES IN A TABLE USING CHECK CONSTRAINT</title><link>http://www.sqlservercentral.com/Forums/Topic587537-359-1.aspx</link><description>And please don't post in all caps. It's the online equivalent of shouting at someone. It's also hard to read.</description><pubDate>Fri, 17 Oct 2008 09:09:27 GMT</pubDate><dc:creator>GilaMonster</dc:creator></item><item><title>RE: INSERTING VALUES IN A TABLE USING CHECK CONSTRAINT</title><link>http://www.sqlservercentral.com/Forums/Topic587537-359-1.aspx</link><description>this sounds very much like a homework assignment....aside from that...you want to do a few things....you said only three specific values.... as you suspected, read about CHECK CONTRAINTS in you books online.you might also want to make the column NOT NULL when you build the table, so it cannot be blasnk either.to force a column to be unique, you'll want to read about UNIQUE CONSTRAINTS in books online as well.the combination of those three should get you where you want to go.show us what you've built so far and we could offer some more insight.</description><pubDate>Fri, 17 Oct 2008 05:56:44 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>INSERTING VALUES IN A TABLE USING CHECK CONSTRAINT</title><link>http://www.sqlservercentral.com/Forums/Topic587537-359-1.aspx</link><description>HELLO MY NAME IS GEORGE BEGINNER IN SQL  MY QUESTION IS THAT ,I WANT TO CREATE A TABLE WITH ONE FIELD  WHICH HAS TO INSERT ONLY THREE VALUES AFTER THAT FIELD INSERT THRE  VALUES IT SHOULD NOT BE ABLE TO INSERT MORE VALUES  IN DETAIL IF MY TABLE NAME IS 'SOURCE' WHICH CONTAIN ONLY ONE FIELD, NAMED 'CATEGORY'OF TYPE VARCHAR I ONLY WANT TO ENTER THREE VALUES IN THIS AS 'LAND','AIR','WATER' I SHOULD BE ABLE TO INSERT ONLY THIS VALUES AND TEHRE SHOULD BE NO DUPLICATION OF THESE VALUES AND NO OTHER VALUES SHOULD BE INSERTED IS IT POSSIBLE USING CHECK CONSTRAINT . IF NOT USING STORED PROCEDURES    I AM EXPECTING AN EARLY REPLY</description><pubDate>Fri, 17 Oct 2008 05:40:17 GMT</pubDate><dc:creator>georgevarghese3</dc:creator></item></channel></rss>