THE WORLD'S LARGEST WEB DEVELOPER SITE

SQL Server UPPER() Function

❮ SQL Server Functions

Example

Convert the text to upper-case:

SELECT UPPER('SQL Tutorial is FUN!');
Try it Yourself »

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;
Try it Yourself »

❮ SQL Server Functions