Sql Server Upper Function

SQL Server: UPPER Function

In this post explains how to use the UPPER function in SQL Server (Transact-SQL) with syntax and examples.

Description

In SQL Server (Transact-SQL), the UPPER function converts all letters in the specified string to uppercase. If there are characters in the string that are not letters, they are unaffected by this function.

Syntax

The syntax for the UPPER function in SQL Server (Transact-SQL) is:

UPPER( string )

Parameters or Arguments

string

The string to convert to uppercase.

Note

Applies To

The UPPER function can be used in the following versions of SQL Server (Transact-SQL):

  • SQL Server 2017, SQL Server 2016, SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, SQL Server 2005

Example

Let's look at some SQL Server UPPER function examples and explore how to use the UPPER function in SQL Server (Transact-SQL).

For example:

SELECT UPPER('AODBA.com');
Output: 'AODBA.COM'

SELECT UPPER('AODBA.com');
Output: 'aodba.COM'