Groups | Blog | Home
all groups > sql server dts > july 2006 >

sql server dts : converting strings to Integers in SSIS


namratha.pavar NO[at]SPAM gmail.com
7/31/2006 8:40:00 AM
Hi,

Is it possible to convert string data to integer in SSIS ? I tried
using the cast -- (DT_I8) and the Data Conversion data flow item. It
errors out saying "Failed to perform type cast". The DataConversion
doesnt work either.

Please let me know if you know how to perform this conversion.

Thanks.
Darren Green
7/31/2006 10:23:51 PM
Hello namratha.pavar@gmail.com,

[quoted text, click to view]

The two methods you mention shoudl work fine, so perhaps there is something
in the string that prevents this. There are no nice format or culture modifers
in the SSIS casts.
If you give an example of your string then someone can probably suggest a
suitable method.

Darren

nam
8/14/2006 1:41:55 PM
Thanks Darren.

Yeah it did work fine .. there were some invalid string data that were
causing the problem. Once I got rid of them the conversions worked
fine.

[quoted text, click to view]
AddThis Social Bookmark Button