Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 change to uppercase

Author  Topic 

Arun.G
Yak Posting Veteran

81 Posts

Posted - 2010-06-02 : 07:40:39
my sample table:


colum1 colum2 column3
1 abc manger
2 xyz trainee
3 rst emp

like that

but now i want to change the lowercase into uppercase in the same table same column

is it possible in sqlserver2008?


Kristen
Test

22859 Posts

Posted - 2010-06-02 : 07:51:02
[code]
UPDATE MyTable
SET Column2 = Upper(Column2),
Column3 = Upper(Column3),
...
[/code]
is that what you meant?
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-06-03 : 04:30:23
or, do it in SELECT

SELECT upper(col1),....

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -