SQL Server UPPER() Function

Convert the text to upper-case

Definition and Usage

The UPPER() function converts a string to upper-case.

Note: Also look at the LOWER() function.

Syntax

UPPER(text)

Parameter Values

Parameter Description
text Required. The string to convert

Technical Details

Works in: SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

More Examples

Example

Convert the text in "CustomerName" to upper-case:

SELECT UPPER(CustomerName) AS UppercaseCustomerName
FROM Customers;