35

What is the T-SQL function for converting strings into upper case in SQL Server?

SteveC
  • 15,808
  • 23
  • 102
  • 173
user688609
  • 351
  • 1
  • 3
  • 3

2 Answers2

56

UPPER

SELECT UPPER(LastName) + ', ' + FirstName AS Name
FROM Person.Person
Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541
16

Try UPPER function:

SELECT UPPER('Hello world!!!')

Result:

HELLO WORLD!!!
Prashant Pimpale
  • 10,349
  • 9
  • 44
  • 84
simplyaarti
  • 253
  • 4
  • 8