Using SQL I'm trying to verify that a field contains only UPPERCASE characters, numbers and may contain a '-'.
I'm trying to weed out results that have lowercase characters or any symbol other than the '-'.
So far I have
WHERE ItemCode LIKE UPPER(ItemCode) Collate SQL_Latin1_General_CP1_CS_AS
However this allows for all other interesting characters and symbols.
Thanks for your help.