Restrict varchar() column to specific values?

Posted by adam on Stack Overflow See other posts from Stack Overflow or by adam
Published on 2010-03-14T06:55:51Z Indexed on 2010/03/14 7:05 UTC
Read the original article Hit count: 149

Is there a way to specify, for example 4 distinct values for a varchar column in MS SQL Server 2008?

For example, I need a column called Frequency (varchar) that only accepts 'Daily', 'Weekly', 'Monthly', 'Yearly' as possible values

Is this possible to set within the SQL Server Management Studio when creating the table?

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server-2008