In SSIS, there is a built-in UPPER function to convert the given lowercase string or character expression to uppercase characters. This article explains how to use the UPPER function with an example and the syntax for the conversion of lowercase string to uppercase characters is as shown below.
UPPER(<<Character_expression>>)
To demonstrate the UPPER function to convert string to uppercase, we use the Employee table below, which has 15 records. Please refer to the Union All Transformation, Derived Column Transformation, Built-in Functions, and SQL Server articles in SSIS.
SSIS UPPER function to convert String to Uppercase
For this, let me add a Data Flow Task and double-click on it to enter the Data Flow region. Next, add the OLE DB Source to read data from the above SQL database table. Please join the OLE DB Source to Derived Column Transformation because. It helps to write expressions and create new columns.
Next, double-click on it to open the Derived Column Transformation Editor. Drag and drop the SSIS UPPER function to the row cell under the Expression and replace the Character_expression with the string column name for converting to Uppercase. Either you can manually delete the complete <<Character_expression>> expression or drag and drop the Name column will automatically replace it.
- UPPER(Name) – Convert the lowercase characters in the Name field to uppercase string.
- UPPER(Occupation) – Convert the lowercase characters in the Occupation column to uppercase.
Click OK to close the Editor window.
Drag and drop the Union All Transformation and connect the Derived Column to it. Next, right-click on the connection node and choose the Enable Data Viewer. Please run the SSIS UPPER function package to see the lowercase characters in Name and Occupation converted to the uppercase string.