Home Forums SQL Server 2005 T-SQL (SS2K5) find whether a upper case letter is there in a given string RE: find whether a upper case letter is there in a given string

  • Actually, this is simpler I think:

    DECLARE @string VARCHAR(10)

    SET @string = 'Sarat'

    SELECT

    CASE

    WHEN @string = lower(@string) COLLATE Latin1_General_CS_AI

    THEN 'No upper case found' ELSE 'Upper Case found'

    END

    Regards

    Piotr

    ...and your only reply is slàinte mhath