Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 CHECK / LIKE question

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-07-10 : 22:05:19
Thomas writes "Hey,

I need some help figuring out how to make sure my password field, is between 5 and 24 chars, and make sure that A-Z and 0-9 values are the only ones allowed. I've read about CHECK and LIKE, but I haven't found out if it's possible to do something like this (this is only to simulate what I want, don't think it will work): LIKE [A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9] or [A-Z, 0-9][A-Z, 0-9][A-Z, 0-9][A-Z, 0-9]... (AND so on)

Please help me with this one!"
   

- Advertisement -