Aug 17, 2006 #1 andyoye IS-IT--Management Mar 23, 2004 56 US I have a column (varchar 25) The values it should store should look like 1111-111111 like 2006-123456 Is there a way I can make sure users cant enter mismatched data? thanks
I have a column (varchar 25) The values it should store should look like 1111-111111 like 2006-123456 Is there a way I can make sure users cant enter mismatched data? thanks
Aug 17, 2006 #2 manmaria Technical User Aug 8, 2003 286 US I am not sure but look for this stored procedure sp_bindrule. HTH Upvote 0 Downvote
Aug 17, 2006 #3 mrdenny Programmer May 27, 2002 11,595 Look into constraints. Denny MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com Upvote 0 Downvote
Look into constraints. Denny MCSA (2003) / MCDBA (SQL 2000) / MCTS (SQL 2005) / MCITP Database Administrator (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com
Aug 18, 2006 Thread starter #4 andyoye IS-IT--Management Mar 23, 2004 56 US how about this check constraint SSN like '___-___-___' Looks like its working for me Upvote 0 Downvote