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)

Comments are closed



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

<<  July 2017  >>
MoTuWeThFrSaSu
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

View posts in large calendar

http://heathesh.com