Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Equivalent to ALLTRIM(UPPER())
Message
 
To
16/06/2008 10:14:09
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01324396
Message ID:
01324406
Views:
11
>>>Is there one?
>>
>>ltrim(rtrim(upper()))
>
>So, if @Filename = "123456.tiff" then this should evaluate to true:
>
>UPPER(@Filename) LIKE '%.TIFF%'
>
>
>Mine does not for some reason.

That (your code) evaluates to true here.

I did..

declare @filename varchar(25)
set @filename = '123456.tiff'
if upper(@filename) like '%.TIFF%'
select 'Got It!'
else
select upper(@filename)
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform