How can i figure out.. if a string is completely in uppercase? or if a string is not in title case (ie: The first letter of a word is in Uppercase and remaining are in lower case).
It would be better if you can do this in front end since there are lots of ready made In built functions for the same.
But you can trying using ASCII functions of the SQL for the same.
Hope the following scripts helps you..
For checking the Upper
Declare @var Varchar(1000) Set @Var = 'SOMEVALUE' IF ASCII(@Var) = ASCII(Upper(@var)) Print 'Its in the Upper Case' Else Print 'Its Not in the upper CAse'
--- for the title case
IF ASCII(LEft(@Var,1)) = ASCII(Upper(Left(@Var,1))) Print 'its the Title Case' Else Print 'Its Not The Title Case. '