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: See also the LOWER() function.

Syntax

UPPER(string)

Parameter Values

Parameter Description
string Required. The string to convert to upper-case

Technical Details

Works in: SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, SQL Server 2005

More Examples

Example

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

SELECT UPPER(CustomerName) AS UppercaseCustomerName
FROM Customers;
Try it Yourself »

❮ SQL Server Functions