UPPER (SQL Server Compact Edition)

Returns a character expression with lowercase character data converted to uppercase.


UPPER ( character_expression )


  • character_expression
    An expression of character or binary data that can be implicitly converted to nvarchar or ntext.

Return Value

nvarchar or ntext


The following example queries the Customers table and returns the names of the companies in uppercase.

SELECT CustomerID, UPPER(CompanyName)
FROM Customers
ORDER BY CompanyName