How to: Convert Data to a Different Data Type Using the Data Conversion Transformation

To add and configure a Data Conversion transformation, the package must already include at least one Data Flow task and one source.

To convert data to a different data type

  1. In Business Intelligence Development Studio, open the Integration Services project that contains the package you want.

  2. In Solution Explorer, double-click the package to open it.

  3. Click the Data Flow tab, and then, from the Toolbox, drag the Data Conversion transformation to the design surface.

  4. Connect the Data Conversion transformation to the data flow by dragging a connector—the green or red arrow—from the source or the previous transformation to the Data Conversion transformation.

  5. Double-click the Data Conversion transformation.

  6. In the Data ConversionTransformation Editor dialog box, in the Available Input Columns table, select the check box next to the columns whose data type you want to convert.


    You can apply multiple data conversions to an input column.

  7. Optionally, modify the default values in the Output Alias column.

  8. In the Data Type list, select the new data type for the column. The default data type is the data type of the input column.

  9. Optionally, depending on the selected data type, update the values in the Length, the Precision, the Scale, and the Code Page columns.

  10. To configure the error output, click Configure Error Output. For more information, see How to: Configure an Error Output in a Data Flow Component.

  11. Click OK.

  12. To save the updated package, click Save Selected Items on the File menu.

See Also


Data Conversion Transformation
Integration Services Transformations
Integration Services Paths
Integration Services Data Types
Data Flow Task
Data Flow How-to Topics (SSIS)

Other Resources

Integration Services Sources
Integration Services Destinations

Help and Information

Getting SQL Server 2005 Assistance