The SSIS SQRT function is a mathematical function that returns the Square root of a numeric expression or number. This article explains how to use the SQRT function with an example and the syntax for finding the Square root of a number is as shown below.

SQRT(<<numeric_expression>>)

To demonstrate the SQRT function, we use the Product table below, which has 14 records. Please refer to the Derived Column Transformation, Union All Transformation, Built-in Functions, and SQL Server articles in SSIS.

## SSIS Square Root of a Number

For this SQRT function example, 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 product table. Please join the OLE DB Source to Derived Column Transformation because it helps to write SQRT expressions and create new columns.

Next, double-click on it to open the Derived Column Transformation Editor. Drag and drop the SSIS SQRT function to the row cell under the Expression and replace the numeric_expression with the Orders column to find the square root of the number. Either you can manually delete the complete numeric_expression or drag and drop the Orders column will automatically replace it.

The below SQRT function expressions will calculate the square root of a number in orders, estimated, and sales amount columns.

SQRT( [Orders] )

SQRT( [Estimated] )

SQRT( [SalesAmount] )

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 SQRT function package to see the Square root of a number in orders, estimated, and Sales columns.