I have script task transformation on my SSIS package. Basically i write data(sql query) to txt file using scrip task.
this piece of code sw.Write(dr(i).ToString())
couldn't convert this value 11398069
properly. I think i need to use bigInt.ToString()
but does it work with any value.
11398069 -- after export txt shows this value as 1.13981e+007
instead of 11398069
Let me know.
Here is the code below.
sw.Write(sw.NewLine)
For Each dr As DataRow In dt.Rows
sw.Write("5|")
For i As Integer = 0 To iColCount - 1
If Not Convert.IsDBNull(dr(i)) Then
**sw.Write(dr(i).ToString())**
End If
If i < iColCount - 1 Then
sw.Write("|")
End If
Next
sw.Write(sw.NewLine)
Next
Values could be really anything. For instance(Sample values). 120 120.09290 1.23443 ABC ZZZZZZZ 11398069 -- after export txt shows this value as 1.13981e+007 instead of 11398069
Let me know how to handle this