You can restrict it at the database level if necessary, using CHECK CONSTRAINTS. CREATE TABLE #Test (col1 varchar(100), col2 int)goinsert into #test values('abcd', 100)insert into #test values('abcdegffgj', 100)insert into #test values('abcd', 100)SELECT * FROM #testGO ALTER TABLE #test WITH NOCHECK ADD CONSTRAINT test_limit CHECK (LEN(col1) > 8 AND LEN(col1) < 15)goinsert into #test values('abcd', 100)insert into #test values('abcdegffgj', 100)insert into #test values('abcd', 100)GODROP TABLE #testOS