Converting a SQL text value to varchar in SSIS

by Heathesh 13. October 2009 20:10

When I first tried this I used a script conversion task, with a script that would Convert.ToString() the text value to the string value I wanted. However, the ToString was returning the type name, and not the converted string.

It seems the best way to do this is to use two Data Conversion tasks. First convert the value to a DT_TEXT field. Next create a Data Conversion and convert the DT_TEXT value to a DT_STR value.

This achieved the desired result.

Tags: , , , ,

SQL Server Integration Services (SSIS)



Powered by BlogEngine.NET 1.5.0.7 (with enhancements by Heathesh)
Theme by Mads Kristensen (with tweeks by Heathesh)

Certifications

Microsoft Certified Professional

Microsoft Certified Technology Specialist

Answer Questions

 

Tag cloud

Calendar

<<  May 2017  >>
MoTuWeThFrSaSu
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

http://heathesh.com