MS SQL String Function

Update column value to all to Upper Case or Lower Case:

UPDATE
MyTable
SET
MyColumn = UPPER/LOWER(MyColumn)

You can also to change all column values in a batch, like all integers multiply by 100:
UPDATE
MyTable
SET
MyColumn = 100 * MyColumn
Make sure it is number format.

See more String Functions on MSDN:
http://msdn.microsoft.com/en-us/library/ms181984.aspx

 

Advertisements