I'm facing a problem in regular expressions case sensitivity. In a regular expression expression only the first item works within the square brackets.
create table
(
FlowerId varchar(7)
constraint chk_flid_regex
check(ActorId like'[A-Z][a-z][A-Z]' collate sql_latin1_general_CP1_CS_AS)
);
Eg. If i give something like this '[A-Z][a-z][A-Z]' Only the first [A-Z] is checked by the server. The third [A-Z] is not checked.
So if I insert values like 'Abc' gets inserted while it shouldn't actually get inserted into the table. Whereas, it doesn't give any error. It should only accept characters like 'AbC'.